rem’s avatarrem’s Twitter Archive—№ 68,637

    1. 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
  1. …in reply to @rem
    Sussed it. Add a key={${i}-${checked}} on the Input` 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