React.usestate breaking component code example
Example 1: react use effect
useEffect(() => {
},[]);
Example 2: usestate
const [count, setCount] = useState(0);
useEffect(() => {
},[]);
const [count, setCount] = useState(0);