Mark As Completed Discussion

Try this exercise. Fill in the missing part by typing it in.

To update the state in a React component, you should never directly modify the state object using this.state. Instead, use the _____________() method provided by React. This ensures that React can properly manage the component's state and trigger the necessary re-renders.

Write the missing line below.