1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/app/application.js
2016-12-08 17:46:28 +01:00

28 lines
530 B
JavaScript

"use strict";
import React from "react";
import ReactDOM from "react-dom";
import { createStore } from "redux";
import { Provider } from "react-redux";
import chessBoardReducer from "reducers/chess-board";
const store = createStore(chessBoardReducer);
import ChessBoard from "components/chess-board";
class App extends React.Component {
render() {
const { store } = this.props;
return (
<ChessBoard store={store} />
);
}
}
ReactDOM.render(
<App store={store} />,
document.getElementById('app')
);