JSFiddle - React, Tailwind, and code Playground

by jmpp77

HTML

<div id="root"></div>

React

ReactDOM.createRoot(document.getElementById('root')).render(<App />);

function App() {

	const [name, setName] = React.useState('')

	return (<div>
    <h1>Hello {name}</h1>
    <form>
      <input type="text" name="name" onInput={event => setName(event.target.value)} />
    </form>
  </div>);
}