const or let in React component
const is a signal that the variable won’t be reassigned. let is a signal that the variable may be reassigned Additional things to ponder: Use const by default Use let only if rebinding is needed const does not indicate that a value is ‘constant’ or immutable. const foo = {}; foo.bar = 10; console.log(foo.bar); // … Read more