Answers for "setting className using useEffect"

1

setting className using useEffect

useEffect(() => {
  document.body.className = 'signin';
  return () => { document.body.className = ''; }
});
Posted by: Guest on May-13-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language