No, we can’t change the state of the component directly. State can only be changed by using setState() method. Changing the state variable directly won’t re-render the component.