react hooks methods code example
Example 1: react use effect
useEffect(() => {
},[]);
Example 2: react hooks
const [state, setState] = useState(initialState);
useEffect(() => {
},[]);
const [state, setState] = useState(initialState);