https://javascript.plainenglish.io/how-to-fix-a-checkbox-not-emitting-the-change-event-in-react-f0fa372f2dbc