File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change 5
5
A component to integrate [ P5.js] ( https://p5js.org/ ) sketches into
6
6
[ React] ( https://reactjs.org/ ) apps.
7
7
8
+ ## NextJS
9
+
10
+ If you plan to use this component within a NextJS application, you should
11
+ instead use
12
+ [ our NextJS dynamic implementation] ( https://github.com/P5-wrapper/next ) instead.
13
+ To do so, you can run:
14
+
15
+ ``` shell
16
+ [npm| yarn| pnpm] [install| add] @p5-wrapper/next react-p5-wrapper
17
+ ```
18
+
19
+ Please look at [ the NextJS dynamic implementation docs] ( https://github.com/P5-wrapper/next ) for more information.
20
+
8
21
## Demo & Examples
9
22
10
23
### Live demo
@@ -31,22 +44,11 @@ Then just open `http://localhost:3001` in a browser.
31
44
32
45
## Installation
33
46
34
- ### NPM
35
-
36
- ``` sh
37
- npm install react-p5-wrapper
38
- ```
39
-
40
- ### PNPM
47
+ To install, use the following command in the format appropriate to your chosen
48
+ package manager:
41
49
42
- ``` sh
43
- pnpm add react-p5-wrapper
44
- ```
45
-
46
- ### Yarn
47
-
48
- ``` sh
49
- yarn add react-p5-wrapper
50
+ ``` shell
51
+ [npm| yarn| pnpm] [install| add] react-p5-wrapper
50
52
```
51
53
52
54
## Usage
You can’t perform that action at this time.
0 commit comments