score:0

function App() {
  const [selectedFret, setSelectedFret] = useState(undefined)
  function onClickFret(data) { 
    setSelectedFret(data) 
  }
  
  return <FretBoard onClickFret={onClickFret} />
}

Related Query

More Query from same tag