UNPKG
@adam.biltcliffe/board-state-playground
Version:
latest (0.0.3)
0.0.3
0.0.2
browser-based testing tool for the board-state library
@adam.biltcliffe/board-state-playground
/
examples
/
adding-playground.jsx
14 lines
(10 loc)
•
287 B
JSX
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
React
from
"react"
;
import
ReactDOM
from
"react-dom"
;
import
AddingGame
from
"./adding"
;
import
PlaygroundApp
from
".."
;
ReactDOM
.
render
(
<>
<
PlaygroundApp
gameClass
=
{AddingGame}
initialState
=
{{}}/
>
</>
,
document
.
getElementById
(
"react-render-target"
) );