Records And Tuples Usage In React
Too Long; Didn't Read
A proposal for Records & Tuples for React has reached stage 2 at TC39. They bring deeply immutable data structures to JavaScript. They look like regular Objects and Arrays, with a # prefix. They are deeply immutable by default. They can be seen as "compound primitives", and can be compared by value. The proposal will enforce immutability without enforcing it as enforcing it's too strictly enforcing it too. It's not a new model for React that can run directly after each update to apply to state.