Componente button

I button consentono agli utenti di intraprendere azioni, fare scelte e interagire con un singolo tocco

Codice di esempio per inserire un button

						
import React from 'react'

const App = () => {

	//FUNZIONE mostraAlert (richiamata alla pressione del button)
	const  mostraAlert = () => {
		alert("HAI CLICCATO IL BUTTON!");
	}

	//RETURN --> Stampa a video
	return (
		<div>
			{/* BUTTON */}
			<button onClick={mostraAlert}>CLICCAMI</button>
		</div>
	);
}

export default App