Setting a checkbox “check” property in React
问题 I am having a very annoying issue with React and checkboxes. The application I am working with requires a list of checkboxes that represent settings that are persisted in the back-end. There is an option to restore the settings to their original state . At first, I created a component that has an object like a map of settings. Each setting has a key and a boolean value. Hence: { bubbles: true, gregory: false } Is to be represented as: <input type="checkbox" value="bubbles" checked="checked" /