Your experience on this site will be improved by allowing cookies
An action triggered as a result of the user action or system-generated event is termed as an event. The React event handling system, also known as Synthetic Events is a cross-browser wrapper of the browser’s native event and is much like handling events on DOM elements but have some syntactic differences.
Example:
import React, { Component } from 'react'; class App extends React.Component { constructor(props) { super(props); this.state = { StudName: '' }; } changeText(event) { this.setState({ StudName: event.target.value }); } render() { return ( EventStudent name:Entered name: { this.state.StudName } |
0 comments