Open isofarro opened 12 months ago
Would be nice to have api usage example in README.md
Would be nice to have api usage example in README.md
I've added the example demo-game component from this PR description to the README, and added ref
to the props documentation.
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 it's use (added to the README too):