A state can be updated on the component directly or indirectly.