setting classname using useeffect

Solutions on MaxInterview for setting classname using useeffect by the best coders in the world

showing results for - "setting classname using useeffect"
Manuel
12 Apr 2019
1useEffect(() => {
2  document.body.className = 'signin';
3  return () => { document.body.className = ''; }
4});