DEV Community

Discussion on: Wait... how does React.useState work?

Collapse
 
andashape profile image
AndAShape

This reminds me of ASP.net Viewstate. It was a structure that paralleled the structure of the UI control tree - there were no identifiers. Values were loaded into controls by matching the two structures. If you messed around with it then you could push values into the wrong control.