# react-go-board

> React go board to render a godash Board

Latest version **0.9.0** (published 2022-07-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-go-board
pnpm add react-go-board
yarn add react-go-board
bun add react-go-board
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.9.0 |
| Published | 2022-07-14 |
| First published | 2017-03-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | duckpunch |
| Maintainers | duckpunch |
| Keywords | go, weiqi, baduk |

## Links

- npm: https://www.npmjs.com/package/react-go-board
- Repository: https://github.com/duckpunch/react-go-board
- Homepage: https://github.com/duckpunch/react-go-board#readme
- Issues: https://github.com/duckpunch/react-go-board/issues
- npm.io page: https://npm.io/package/react-go-board

## Dependencies (4)

- [react](https://npm.io/package/react.md) ^16.9.0
- [godash](https://npm.io/package/godash.md) ^1.3.5
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 0.9.0 (latest) — 2022-07-14
- 0.8.0 — 2019-08-23
- 0.7.0 — 2019-08-22
- 0.6.3 — 2018-07-21
- 0.6.2 — 2018-06-18
- 0.6.1 — 2018-06-18
- 0.6.0 — 2018-06-18
- 0.5.0 — 2018-04-23
- 0.4.3 — 2018-04-23
- 0.4.2 — 2018-04-23
- 0.4.1 — 2018-04-23
- 0.4.0 — 2017-05-27
- 0.3.0 — 2017-05-17
- 0.2.6 — 2017-05-14
- 0.2.5 — 2017-05-12
- … 7 more at https://npm.io/package/react-go-board/versions

## README

# React Go Board

A simple SVG board in the form of a [React][react] component to render a
[Godash][godash] [Board][board].

Resize it by putting it in a sized container.

# Getting started

```javascript
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)

[react]: https://github.com/facebook/react
[godash]: https://github.com/duckpunch/godash
[board]: http://duckpunch.github.io/godash/documentation/#board_1

---
_Source: https://npm.io/package/react-go-board · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
