Skip to content

Instantly share code, notes, and snippets.

@efleming969
Created July 30, 2021 22:14
Show Gist options
  • Save efleming969/13de9533711a138f93a0665b200bb24c to your computer and use it in GitHub Desktop.
Save efleming969/13de9533711a138f93a0665b200bb24c to your computer and use it in GitHub Desktop.
import View from "../../components/View"
import { h, Component } from "preact"
export default class AddGameWithCode extends Component<{}, {}> {
render() {
return <View title="Add Game">
<label for="code">Code</label>
<input id="code" name="code"/>
<button>Fetch game data</button>
<ul role="list" aria-label="list of players">
<li>
<label for="player-joe">joe</label>
<input id="player-joe" type="radio"/>
</li>
</ul>
<button type="submit">Submit</button>
<div role="alert" aria-label="confirmation">Your game was submitted!</div>
</View>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment