From what I know
A const variable cannot be changed
From what I know
A const variable cannot be changed
I think you are talking about react-hooks.
const [count, setCount] = useState(0);
Here, const
is a guard against reassigning the value of the reference within the same scope.