import React, { useState } from 'react'; import { Mgba } from './mgba'; function App() { const [onGame, setOnGame] = useState(false); const [volume, setVolume] = useState(1.0); return (
{ onGame && <> setVolume(Number(e.target.value))}> }
); } export default App;