top | item 19095465

(no title)

FLGMwt | 7 years ago

The component renders any time the setWhatever function is called, similar to this.setState() in class components. The presumption is anything that you're storing in state is depended on by the component. If it's not, it doesn't make sense to have it in state anyway.

discuss

order

No comments yet.