how to change className inside useeffect in function component code example
Example: setting className using useEffect
useEffect(() => {
document.body.className = 'signin';
return () => { document.body.className = ''; }
});
useEffect(() => {
document.body.className = 'signin';
return () => { document.body.className = ''; }
});