Skip to content

Commit 4b90e84

Browse files
committed
decouple client from React
1 parent ebe7758 commit 4b90e84

29 files changed

Lines changed: 585 additions & 494 deletions

File tree

docs/react/boardgameio.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/react/example-1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535
});
3636

37-
var App = BoardgameIO.Client({ game: TicTacToe });
37+
var App = BoardgameIO.ReactClient({ game: TicTacToe });
3838
ReactDOM.render(<App/>, document.getElementById('app'));
3939
</script>
4040

docs/react/example-2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
}
132132
}
133133

134-
var App = BoardgameIO.Client({
134+
var App = BoardgameIO.ReactClient({
135135
board: TicTacToeBoard,
136136
game: TicTacToe,
137137
});

docs/react/phases-1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
}
6464
}
6565

66-
const Phases = BoardgameIO.Client({
66+
const Phases = BoardgameIO.ReactClient({
6767
game,
6868
numPlayers: 1,
6969
board: Board,

docs/react/phases-2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
}
8383
}
8484

85-
const Phases = BoardgameIO.Client({
85+
const Phases = BoardgameIO.ReactClient({
8686
game,
8787
numPlayers: 1,
8888
board: Board,

examples/modules/chess/components/multiplayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
import React from 'react';
10-
import { Client } from 'boardgame.io/client';
10+
import { Client } from 'boardgame.io/react';
1111
import ChessGame from '../game';
1212
import ChessBoard from './board';
1313

examples/modules/chess/components/singleplayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
import React from 'react';
10-
import { Client } from 'boardgame.io/client';
10+
import { Client } from 'boardgame.io/react';
1111
import ChessGame from '../game';
1212
import ChessBoard from './board';
1313

examples/modules/liars-dice/components/multiview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
import React from 'react';
10-
import { Client } from 'boardgame.io/client';
10+
import { Client } from 'boardgame.io/react';
1111
import Game from '../game';
1212
import Board from './board';
1313

examples/modules/phases/components/diagram.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import React from 'react';
1010
import PropTypes from 'prop-types';
1111
import { Game } from 'boardgame.io/core';
12-
import { Client } from 'boardgame.io/client';
12+
import { Client } from 'boardgame.io/react';
1313
import './diagram.css';
1414

1515
const game = Game({

examples/modules/phases/components/phases.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import React from 'react';
1010
import PropTypes from 'prop-types';
1111
import { Game } from 'boardgame.io/core';
12-
import { Client } from 'boardgame.io/client';
12+
import { Client } from 'boardgame.io/react';
1313
import './phases.css';
1414

1515
const game = Game({

0 commit comments

Comments
 (0)