Update 11_events.md

fix onclick attribute on event handling in html section
pull/131/head^2
Samson Adesanoye 4 years ago committed by GitHub
parent 8f055f44e1
commit 58cb030ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,7 +48,7 @@ Event handling in HTML
<title>30 Days Of React App</title> <title>30 Days Of React App</title>
</head> </head>
<body> <body>
<button>onclick="greetPeople()">Greet People</button> <button onclick="greetPeople()">Greet People</button>
<script> <script>
const greetPeople = () => { const greetPeople = () => {
alert('Welcome to 30 Days Of React Challenge') alert('Welcome to 30 Days Of React Challenge')

Loading…
Cancel
Save