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