Created
February 26, 2018 02:33
-
-
Save interaminense/1ef84287336bb8180e859cec182ecb57 to your computer and use it in GitHub Desktop.
Mathematics Lifecycle Render
This file contains 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
render() { | |
const {start, finish, init, lvl} = this.state; | |
return ( | |
<div class={`mathematics mathematics--lvl-${lvl.internalLabel}`}> | |
<div class={'mathematics__body'}> | |
{init && ( | |
<div class={'mathematics__init'}> | |
{this.renderInitGame()} | |
</div> | |
)} | |
{start && ( | |
<div class={'mathematics__start'}> | |
{this.renderStartGame()} | |
</div> | |
)} | |
{finish && ( | |
<div class={'mathematics__finish'}> | |
{this.renderFinishGame()} | |
</div> | |
)} | |
</div> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment