This function is a click handler.
const select = num => () => value += num;
It has 2 arrows !!
- Why? Could you use:
const select = (num) => value += num;
if not, why not.
- How would
const select = num => () => value += num;
? look as a regular function