useMemo(() => {
console.log(123)
}, [])
const useComponentWillMount = (func) => {
const willMount = useRef(true)
if (willMount.current) func()
willMount.current = false
}
useComponentWillMount(() => {
console.log(123)
})