DOM elements
<button>
A native button supports keyboard activation. Declare type explicitly for non-submit actions inside a form.
Formal Syntax & Structure
react syntaxreact
<button ... />Working Example
Example Snippetreact
export default function App(){return <form><button type='button' onClick={()=>console.log('Preview')}>Preview</button><button type='submit'>Save</button></form>}