Closed zamarrowski closed 3 years ago
import React from 'react' class App extends React.Component { state = { text: '' } changeText = (e) => this.setState({ text: e.target.value }) render() { return <> <h1>{this.state.text}</h1> <input type="text" onChange={this.changeText} /> </> } } export default App