Ye lowly ole' html checkbox
Ye lowly ole' checkbox Often when developing with frameworks like React we use html elements like checkbox (input type="checkbox") as "connected" controls and don't depend on or avail of the default html behavior (by connected, I mean using useState to track the checked/unchecked state of the checkbox). Also worth noting we often use custom components which wrap the html element. But react-router v6.4 and above requires you (using the standard flow of Form to action function handler) to depend on the default/native html element behavior because react-router follows standard web patterns for form handling and submission (which is a good thing). For checkbox that native html element behavior is: use the name attribute to give it a name and if it's checked the name will be submitted in the form data by default if the checkbox is checked when submitted, then the form submitted will contain: <name>=on "on" is just the default html checkbo...