Whenever a user clicks on this button, this button will trigger the helloThere function and show the Hi! "); A very common use of an inline function inside of an onClick event handler in React is to update a component’s state. However, if you’re already writing Stage 2 JavaScript code, then using the arrow function is your safest best. Admin message on the screen.
11/04
2020