by ufo · 12y ago · 0 comments
className={this.state.playing ? "hidden" : "showing"}
instead of <div>
{(this.state.playing
? <Board/>
: <Wordform/> )}
</div>Although as pointed out in the Disqus comment, choosingg what to render is also fine, I probably did something silly stemming from not fully understanding the component life cycle.