1 min readApr 17, 2020
I was integrating selection.js into a React component and had hell of a time with useState. useRef was a great fit to keep track of selected items, though I didn’t like how mutable use ref was and it is as difficult to follow the mutations.