update a class from state eract code example Example: reactjs update state example { hasBeenClicked: false, currentTheme: 'blue', }