Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

onChange in react js

import React from "react";

function App() {
  function handleChange(event) {
    console.log(event.target.value);
  }

  return (
    <input
      type="text"
      name="firstName"
      onChange={handleChange}
    />
  );
}

export default App;
Source by sebhastian.com #
 
PREVIOUS NEXT
Tagged: #onChange #react #js
ADD COMMENT
Topic
Name
1+4 =