We used to use const in code and think about it as a readonly value. But this is not the case with React hooks. Take this example:
const [count, setCount] = useState(0);
count is a readonly variable but then in code we can use the setCount function and count is changing every time I click a button and run setCount. Can someone explain?