Skip to content

Instantly share code, notes, and snippets.

@interaminense
Last active February 28, 2018 03:13
Show Gist options
  • Select an option

  • Save interaminense/a9ee33c91a2e252aee6286db915140fb to your computer and use it in GitHub Desktop.

Select an option

Save interaminense/a9ee33c91a2e252aee6286db915140fb to your computer and use it in GitHub Desktop.
Mathematics App
import Component from 'metal-jsx';
import Mathematics from './components/Mathematics';
class App extends Component {
render() {
const {lvlDefault, lvls, showResult, countdown} = this.state;
return (
<Mathematics
countdown={30}
lvlDefault={'normal'}
lvls={[
{
internalLabel: 'easy',
label: '😸 easy',
maxNumber: 3,
operators: [
{ label: '+', },
{ label: '-', }
]
},
{
internalLabel: 'normal',
label: '🧠 normal',
maxNumber: 5,
operators: [
{ label: '+', },
{ label: '-', },
{ label: 'x', }
]
},
{
internalLabel: 'hard',
label: '💀 hard',
maxNumber: 10,
operators: [
{ label: '+', },
{ label: '-', },
{ label: 'x', }
]
}
]}
showResult={false} />
);
}
}
export { App };
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment