oakmac / chessboardjs

JavaScript chessboard
https://chessboardjs.com
MIT License
2k stars 406 forks source link

I'm not able use this package with react. #201

Closed curiosbasant closed 3 years ago

curiosbasant commented 3 years ago

It doesn't exports anything, rather it just add the ChessBoard to global window. Please guide me

oakmac commented 3 years ago

It is possible to use this library with React via hooks and/or component lifecycle events. You will have to bridge the state of the board with however you are managing state in React (components, Redux, etc).

You may want to check out Chessboard.jsx as an alternative too.