How to use Chessboard.js with Reactjs?
问题 I've been looking a bit at chessboardjs (https://chessboardjs.com/) as a way to get some practice with some React coding. However, I haven't been able to get the simple example of just showing the board in my app working. the documentation says to use <div id="board" style={{width: 400}}/> in the HTML, and var board = ChessBoard('board', 'start'); to get startet. However, ChessBoard('board', 'start'); gives me an "object not a function" compilation error. I've tried fiddling a lot of