Last active
February 28, 2018 03:13
-
-
Save interaminense/a9ee33c91a2e252aee6286db915140fb to your computer and use it in GitHub Desktop.
Mathematics App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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