snippet
Set body styles with React on componentDidMount
componentDidMount(){
document.body.style.backgroundColor = "yellow";
}
Related snippets |
---|
componentDidMount(){
document.body.style.backgroundColor = "yellow";
}
Related snippets |
---|