Skip to content
public-library›Rules›React›Use functional updates when new state depends on old state

Use functional updates when new state depends on old state

Versions

A version describes what work must do to comply with the rule. Major: work that complied with the previous version could fail this one. Minor: it still complies, and this version adds guidance. Patch: it still complies, and nothing is added. How versions work