fuzzyworld

dao-game / react / files / src / app.tsx

Branch react · default branch · all branches

app.tsx

316 B · history · blame

1import React, { useCallback, useState } from 'react';
2import ReactDOM from 'react-dom';
3import { Game } from './game/game';
4import { App } from './react/App';
5
6
7const game = new Game('r', 'Red', 'b', 'Blue');
8const app = <App game={game} />
9const root = document.getElementById('root');
10
11ReactDOM.render(app, root);