I\'m trying to convert the following setState function to React Hooks
const setUserAnswer = (answer) => { this.setState((state) => ({ answer