pablorc/snaaake

View on GitHub
www/js/components/start_window.jsx

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

import React from 'react';
import ReactDOM from 'react-dom';

class StartWindow extends React.Component {

  start(store) {
    store.dispatch({type: 'RESTART'});
  }

  render() {

    const shownClass = ''; //this.props.justLanded ? '' : 'u-hidden';

    return (
      <div className="window">
        <button className="window__send" onClick={() => this.start(this.props.store)}>START</button>
      </div>
    );
  }
};

export default StartWindow;