You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
718 B
31 lines
718 B
import { Component } from 'react';
|
|
|
|
const blinkTimer = null;
|
|
|
|
const toggleTimeout = function() {
|
|
//var hidden = this.state.hidden; which was false
|
|
//this.setState({ hidden: !hidden });
|
|
//blinkTimer = setTimeout(toggleTimeout.bind(this), 600);
|
|
};
|
|
|
|
export default class NewGame extends Component {
|
|
componentDidMount() {
|
|
//toggleTimeout.call(this);
|
|
};
|
|
|
|
componentWillUnmount() {
|
|
clearTimeout(blinkTimer);
|
|
};
|
|
|
|
render() {
|
|
const classname = ['newgame'];
|
|
|
|
//if (this.state.hidden === true) {
|
|
// classname.push('hidden');
|
|
//}
|
|
|
|
return (
|
|
<div className={classname.join(' ')}>Press Space Bar To Play</div>
|
|
);
|
|
};
|
|
};
|
|
|