Flipboard / Flipboard/react-canvas

[FORK] react-canvas with added support for React 16, React 17 and React 18

Open
#181 2 comments 9 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
13.2k
Forks
909
PR merge metrics
No merged PRs in 30d

Description

***Link: [antoninkriz/react-canvas](https://github.com/antoninkriz/react-canvas)***
---

Hello, sadly this repository seems very dead, so I would like to introduce you to [my fork](https://github.com/antoninkriz/react-canvas).

At @qntln we use our [own fork](https://github.com/qntln/react-canvas) which I had the honor to upgrade to support React 18. While experimenting with our current version I managed to upgrade `react-canvas` to support all newer versions of React.

## Changes and support

Currently my fork supports (please check my fork's `README.md` for any updates):
* **React 18.2.0**
* **React 17.0.2**
* **React 16.14.0**

and also introduces Least Recently Used Cache (LRU Cache) (written by @darkyen [darkyen/react-canvas/LRUCache](https://github.com/darkyen/react-canvas/tree/LRUCache)) that's currently missing from some newer forks like [qntln/react-canvas](https://github.com/qntln/react-canvas), which supports React 16.8.8 (and my fork might get merged there in the future).

At the time of writing I haven't had a chance to deeply test all the changes, although the code runs OK so far, so please, if you encounter any issues please also create one in my repository!

## Usage

As there isn't a `npm` package yet (if there'll be an interest I'll create one) you can install these versions be editing `package.json` like this:
```json
{
...
"packages": {
...
"react-canvas": "https://github.com/antoninkriz/react-canvas.git#BRANCH_NAME",
...
},
...
}
```
where you should specify `BRANCH_NAME` according to `README.md` in the fork's repository.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.