Reputation: 6013
I'm interested in using the Chessboard.js library with React. However Chessboard.js uses jQuery, which React recommends against, although it seems it's not completely forbidden. I know that there are libraries that have integrated Chessboard.js with React, but I don't know how successfully they've done so.
The proof is in the pudding, of course, and it would be possible to try out the various packages and see how they work. But I'm relatively new to React, so I'd be keen to know if anyone had any good (or bad) experiences mixing Chessboard.js with React.
Upvotes: 1
Views: 178
Reputation: 15821
Sure it is possible. Return always false in shouldComponentUpdate and use jquery after placing your refs in componentDidMount. Ref: https://notes.devlabs.bg/how-to-use-jquery-libraries-in-the-react-ecosystem-7dfeb1aafde0
Upvotes: 1