adding local states in react class components code example Example: reactjs update state example { hasBeenClicked: false, currentTheme: 'blue', }