const in React
const means the binding doesn’t get reassigned. Components are usually const Box = () => …. useState’s setter is const setN = … — you call setN(1), you don’t do setN = otherFn. const does not make the value on screen frozen; state still updates via the setter.
let is fine for loop indexes outside JSX. Prefer const by default. Don’t confuse const with React.memo or Object.freeze.
const in React — box and setN are const. Click still works — we call setN, we don’t do setN = something else.
const component + setter still updates UI.