chessground
chessground copied to clipboard
Chessground React Wrapper
I need to use the chessground api (such as `set()`, `getFen()`, etc) but i don't know how to use it with `@react-chess/chessground`, anyone can help me?
This is identical to PR https://github.com/react-chess/chessground/issues/13. I'm experiencing the same issue on a blank Next.js project. `npx create-next-app --example with-docker nextjs-docker` `cd nextjs-docker` `npm i @react-chess/chessground` Add the `import` commands...
Following on from the suggestion in #14 , reimplemented my changes using a forwardRef and useImperativeHandle. Returns an instance of the Chessground API for the current board. Sample code demonstrating...