The standard way to use a React useState Hook is the following:
const [count, setCount] = useState(0);
However this const count
variable is clearly going to be reassigned to a different primitive value.
Why then is the variable not defined as let count
?