-
Having a React brain fart moment. I want a button that toggles all the checkboxes, but still allow my user to check individual checkboxes… codesandbox.io/s/mzxv32zznj
-
Sussed it. Add a
key={${i}-${checked}} on theInput` element, so when the top level checkbox is ticked, it'll drop all the previously rendered elements and re-render the whole lot - making it checked. codesandbox.io/s/mzxv32zznj