react js updating state and removing components code example Example: reactjs update state example { hasBeenClicked: false, currentTheme: 'bluesss', }s