. There are many ways you can preserve multiple checkbox values in React js inside the MongoDB database. map () The first step is to declare the list of the item names as an array of strings. And at that time, you want to get all checked checkbox values on submitting in react js app. The difference is that Switch will trigger the state change directly, but Checkbox just marks the state as changed and this needs to be submitted. A checkbox is one of the widely used HTML element in web layout, which allows us to select one or multiple values among other various options. Item allows you to press the. . If a checkbox is unchecked, it should of course be removed from the array. jsx index. . . Follow. Here we have bound the state variable checked to checked > attribute of radio button or <b>checkbox<b>. The list could be re-ordered at any time, so we need to operate on the index of a value.