MCPcopy Create free account
hub / github.com/react-dnd/react-dnd / render

Method render

examples/00 Chessboard/Tutorial App/Square.js:10–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8 };
9
10 render() {
11 const { black } = this.props;
12 const backgroundColor = black ? 'black' : 'white';
13 const color = black ? 'white' : 'black';
14
15 return (
16 <div
17 style={{
18 color,
19 backgroundColor,
20 width: '100%',
21 height: '100%',
22 }}
23 >
24 {this.props.children}
25 </div>
26 );
27 }
28}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected