Just saw a tutorial that uses <button> to create a, well, "ToggleButton," despite the fact that it's actually an on/off switch and therefore should be a checkbox.
FE developers, don't do this. Please learn proper, semantic, accessible HTML before attempting any framework.
ALT Code in React that shows how to create a toggle switch with the <button> HTML tag