Does useState() a default value when the state key already set ?
The doc is unclear on the topic and my tests show contradictory results.
Let's say I call a component multiple times with
will the second useState() be reset to
or is useState smart enough to know it aleady has a value and to not reinstantiate itself ?
Let's say I call a component multiple times with
will the second useState() be reset to
{user: null} then to {user: 'bar'}or is useState smart enough to know it aleady has a value and to not reinstantiate itself ?
