how to use state in react hs code example Example: set state setState({ searchTerm: event.target.value })