UseState performance features
I just came across two lesser-known features of the useState hook in React :
1 - Lazy initialization
Rather than simply passing the initial state you can call useState with a function that returns the initial state. This way, the initial value is on...
dmartorell.hashnode.dev1 min read