(Choose 2 answers)
Which of the following examples are the proper ways to update the local state in the class component in React?
A. this.setState("keywords", value)
B. this.setState({keywords: value})
C. this.setState(["keywords", value])
D. this.setState((state) => ({keywords: value}))
Exit 43