Renders a chess board using React
npm install react-chess

Renders a chess board using React
```
npm install --save react-chess
`js
const React = require('react')
const ReactDOM = require('react-dom')
const Chess = require('react-chess')
ReactDOM.render(
`
`js
const React = require('react')
const ReactDOM = require('react-dom')
const Chess = require('react-chess')
const lineup = ['R@h1', 'P@f2', 'q@d8', 'R@a1', 'P@a2', 'P@c2', 'b@c8', 'p@d7', 'Q@d1', 'n@g8']
ReactDOM.render(
`
* allowMoves - _boolean_ Whether or not to allow piece movement (default: true)highlightTarget
* - _boolean_ Whether or not to highlight the target square on move (default:true
)drawLabels
* - _boolean_ Whether or not to render labels (1-8, a-h) (default: true)lightSquareColor
* - _string_ Color to use for light squares (default: #f0d9b5)darkSquareColor
* - _string_ Color to use for dark squares (default: #b58863)pieces
* - _array_ Array of pieces to draw. Each item should be a piece in algebraic notation, forQ@d1
instance for a white queen at square d1. (default: Chess.getDefaultLineup())onMovePiece
* - _function_ Function that is called when a piece moves to a new position. Receivespiece
three arguments:
* - _object_ Object with properties notation (R@h1 etc), name (R), positionh1
(), index (index in pieces array)fromSquare
* - _string_ Previous square positiontoSquare
* - _string_ New square positiononDragStart
* - _function_ Function that is called when a piece starts to move. Receives sameonMovePiece
arguments as except toSquare. Returning false` from this function will prevent
the dragging from happening.
MIT © Espen Hovlandsdal