<main></main>
const { useState } = React;

function App(props) {
  const [one, setOne] = useState('');
  const [two, setTwo] = useState('');
  const [three, setThree] = useState('');
  
  return (
    <div>
      <form>
        <label>
          one: <input type="text" value={one} onChange={(e) => setOne(e.target.value)} />
        </label>
        <label>
          two: <input type="text" value={two} onChange={(e) => setTwo(e.target.value)} />
        </label>
        <label>
          three: <input type="text" value={three} onChange={(e) => setThree(e.target.value)} />
        </label>
      </form>
      <p>{one}, {two}, {three}</p>
    </div>
  );
}

ReactDOM.render(<App />, document.querySelector('main'));
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/react/16.13.1/umd/react.development.js
  2. https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.13.1/umd/react-dom.development.js