You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 15, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+22-10Lines changed: 22 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ For those that haven't used or seen dat.GUI before, it's basically a GUI for upd
8
8
9
9
-[Demo](#demo)
10
10
-[Installation](#installation)
11
+
*[React Version](#react-version)
11
12
-[Usage](#usage)
12
13
-[Docs](#docs)
13
14
*[`DatGui`](#datgui)
@@ -36,6 +37,7 @@ For those that haven't used or seen dat.GUI before, it's basically a GUI for upd
36
37
+[`toc`](#toc)
37
38
-[What's missing](#whats-missing)
38
39
-[Roadmap](#roadmap)
40
+
-[License](#license)
39
41
40
42
## Demo
41
43
@@ -49,6 +51,10 @@ The demo is a deployed version of the latest production build of `./example`. Th
49
51
npm install react-dat-gui --save
50
52
```
51
53
54
+
### React Version
55
+
56
+
React dat.GUI uses React and React-DOM `^16.0.0` aka React Fiber. It's recommended that you update your app's React version to align with this in order to avoid any issues.
57
+
52
58
## Usage
53
59
54
60
First you'll need a wrapper component which will handle the updates from your dat.GUI, this component should pass the data for the GUI to control as well as an `onUpdate` function to the `DatGui` container component as props. Here's how you might do that:
0 commit comments