2 ms·
More understandable if you already know Javascript of course. If you don't, of course you'd be confused why const is used (it's technically as if the constant w
by satvikpendem 4y ago
More understandable if you already know Javascript of course. If you don't, of course you'd be confused why const is used (it's technically as if the constant were a pointer to a function, but in practice a function and a pointer to a function are one and the same in JS).
useState is one of those things that's a React specific concept, yes, but the rest of the code is very familiar to non-React frontend developers in general.