mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
28 lines
545 B
JavaScript
28 lines
545 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 gameId={1} store={store} />
|
|
);
|
|
}
|
|
}
|
|
|
|
ReactDOM.render(
|
|
<App store={store} />,
|
|
document.getElementById('app')
|
|
);
|