0.9.0 • Published 2 years ago
react-go-board v0.9.0
React Go Board
A simple SVG board in the form of a React component to render a Godash Board.
Resize it by putting it in a sized container.
Getting started
import React from 'react';
import godash from 'godash';
import {Goban} from 'react-go-board';
function handleCoordinateClick(coordinate) {
// http://duckpunch.github.io/godash/documentation/#coordinate
coordinate;
}
export default function RenderMe() {
const board = new godash.Board(19);
const annotations = [new godash.Coordinate(2, 2)];
return <Goban
board={board}
boardColor='#efefef'
annotations={annotations}
onCoordinateClick={handleCoordinateClick} />;
}
Future stuff
- Optional coordinate labels
- Annotations (whenever I do annotations for Godash)
0.9.0
2 years ago
0.8.0
5 years ago
0.7.0
5 years ago
0.6.3
6 years ago
0.6.2
6 years ago
0.6.1
6 years ago
0.6.0
6 years ago
0.5.0
6 years ago
0.4.3
6 years ago
0.4.2
6 years ago
0.4.1
6 years ago
0.4.0
7 years ago
0.3.0
7 years ago
0.2.6
7 years ago
0.2.5
7 years ago
0.2.2
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago