Closed yuchi closed 4 years ago
In the following example the setter for the state is never exposed (and therefore used) so id is known to be static.
id
const [id] = React.useState(Math.random);
In the following example the setter for the state is never exposed (and therefore used) so
id
is known to be static.