React UseState hook

by Admin 30. January 2020 11:03
function App() {
  const [ textValue, setValue ] = useState('');
  return (
    <div className='App'>
      Hello
      <input
        type='textbox'
        onChange={(e) => {
          setValue(e.target.value);
        }}
      />
      {textValue}
    </div>
  );
}

export default App;

Tags:

Comments are closed

TextBox

Tag cloud

    RecentPosts