Example. React normalizes events so that they have consistent properties across different browsers. Now, we need to get the above input field value by clicking on the button. A synthetic event is a shell around the native DOM event with additional information for React. It is different from Event.currentTarget when the event handler is called during the bubbling or capturing phase of the event.. Syntax var theTarget = event.target; Value. You will learn how to use a button with its onClick event and how to define and…, If you are new to React, most likely you want to know how to display a list of items in React's JSX syntax. For example, sometimes I’ll even mirror the prop name because I’m mildly OCD: