MCPcopy Index your code
hub / github.com/reactide/reactide / getInitialState

Function getInitialState

example/client/components/App.js:8–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6let gameStore = [];
7
8function getInitialState() {
9 return {
10 rows: [
11 ['', '', ''],
12 ['', '', ''],
13 ['', '', ''],
14 ],
15 turn: 'X',
16 winner: undefined,
17 gameList: gameStore,
18 };
19}
20
21function checkWin(rows) {
22 const combos = [

Callers 2

constructorFunction · 0.85
App.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected