showing results for - "add classnames to body"
Ignacio
17 Jan 2018
1openModal = (event) => {
2  document.body.classList.add('modal-open');
3  this.setState({ showModal: true });
4}
5hideModal = (event) => {
6  document.body.classList.remove('modal-open');
7  this.setState({ showModal: false });
8}
queries leading to this page
how to add class to the bodyadd class nameadd class in body in jsadd class to body element reactreact set body classadd class to body with reactreact how to change class on bodyset classadd class to body reactadd class to body from react componentreact add classname to bodyjs add class to body reactjs add classname to divhow to add class to bodytag jsdocument body add classvanilla js add class to bodyappend class to body in react jsadd class body javascriptreact add class to body on one pagetyposcript add class to bodyhow to add classname in an objectadd body classbody class reactreact add class to bodyjs add class to bodyes6 add class to bodyhow to add class to body tag jsadd class to body tag javascriptcan you add classes to the bodyhow to add class name in bodyjs add classname to bodyadd class in body with class using javascriptadd a class to body reacthow to give class in body tag in react jsjava script add class to the bodytoggle body class reacthow to put a body in reactreact app body tag cssjavascript add class to bodybody add classadd class to body jsdocument add class to bodyadd class body reactget body tag reactbody tag in reacthow to change body class from react componentadd classname to body tag in react jsjavascript add classname to bodyadd class to bodyadd classname to body taghow to add class to body tag on page load in react jsreactjs add css class to bodytypo3 add class to bodyadd classnamebody add class to elementbody tag in react jsreact add classes to bodyadd class to body javascripthow to add classs in body tag in reactadd classs in body reactreact js add class to bodyaddclass namedocument body classlist add reactjavascript add class to body tagreact change body classadd classnames to body