9 lines
161 B
TypeScript
9 lines
161 B
TypeScript
|
import { useEffect } from "react"
|
||
|
import state from "state"
|
||
|
|
||
|
export default function useLoadOnMount() {
|
||
|
useEffect(() => {
|
||
|
state.send("MOUNTED")
|
||
|
}, [])
|
||
|
}
|