When we try to update style of a class we use css() method in a function in jquery So i want to update a style of a class in Reactjs. Help me to do im new to React
Here is what im trying to do
class Someclass extends Component {
functionA= () =>{
this.functionB();
}
functionB = () =>{
//Here i want to update styles
this.divstyle = {
width: 80%;
}
}
render(){
return(
<div className="div_wrapper" onLoad={this.functionA()}>
<div clasName="innerDiv" style={this.divstyle}></div>
</div>
)
}
}
export default Someclass;