Package Exports
- kokopu-react
- kokopu-react/dist/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kokopu-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Kokopu-React
Kokopu-React is a React-based library to create and display chessboard and chess-related components. Kokopu-React is built on top of Kokopu, a headless library that implements all the chess logic (game rules, parsing of FEN and PGN formats...).
https://www.npmjs.com/package/kokopu-react
Documentation & live-demo
https://kokopu-react.yo35.org/
Example
import React from 'react';
import { createRoot } from 'react-dom/client';
import { Chessboard } from 'kokopu-react';
createRoot(document.body).render(<Chessboard />);
More examples available in documentation & live-demo.