Skip to content

Instantly share code, notes, and snippets.

@taingmeng
Last active November 13, 2017 14:14
Show Gist options
  • Save taingmeng/ece0f635e15aaf25cc435213c1f0e791 to your computer and use it in GitHub Desktop.
Save taingmeng/ece0f635e15aaf25cc435213c1f0e791 to your computer and use it in GitHub Desktop.
Badminton Score Tutorial
import React, { Component } from 'react';
import './App.css';
class App extends Component {
constructor() {
super();
this.state = {
players: [
{
name: 'Player 1',
score: 0,
commands: ["You can't see me"]
},
{
name: 'Player 2',
score: 0,
commands: ["I'm the king"]
}
],
serverHistory: [],
voiceStatus: '',
voiceInput: []
};
}
render() {
return (
<div>
</div>
);
}
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment