import { useState } from 'react'

export default () => {
  const [name, setName] = useState("Tristan")

  return (
    <input value={name} onChange={e => setName(e.target.value)} />
  )
}

Shared with Codespace