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
* Fixing moveAllReducer shuttling disabled items in certain cases
* Tweaking working example under basic usage
* Adding unit tests for moveAllReducer
* Cleaning some things up
Copy file name to clipboardExpand all lines: README.md
+22-16Lines changed: 22 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,11 +47,14 @@ Other implementations are great but they generally force you to massage your dat
47
47
48
48
```bash
49
49
npm i react-accessible-shuttle
50
+
51
+
# add peer dependencies
52
+
npm i react react-dom
50
53
```
51
54
52
-
### Consuming
55
+
### Basic Usage
53
56
54
-
react-accessible-shuttle is a controlled component, but is flexible and adapts to your needs. Using it easy. Since you have _complete_ control over the rendering process, feel free to customize the layout to your liking!
57
+
`react-accessible-shuttle` is a controlled component, but is flexible and adapts to your needs. Since you have _complete_ control over the rendering process, you can render anything you want no matter how simple or complex your state data is. Here's an example using an array of strings:
`react-accessible-shuttle` is powered by React hooks which allows the nitty-gritty internal details of the component to be handled for you, but while giving you the flexibility to control _everything_ if you need it.
108
+
104
109
### CDN
105
110
106
111
You can also use react-accessible-shuttle via CDN -- it even works with legacy browsers like IE 11 -- without transpiling.
If you're new to hooks, the example might seem verbose; however, we can easily abstract react-accessible-shuttle to take in a model and render on your behalf.
180
186
181
187
### Without Hooks
182
188
183
-
> **Note:** React 16.8 is a peer dependency of react-accessible-shuttle which means we can use hooks! However, if, for some reason, you find yourself stubbing 16.8 APIs so you can use newer stuff without upgrading, then you could possibly make things work :astonished:
189
+
> **Note:** React 16.9 is a peer dependency of react-accessible-shuttle which means we can use hooks! However, if, for some reason, you find yourself stubbing 16.9 APIs so you can use newer stuff without upgrading, then you could possibly make things work :astonished:
184
190
185
191
Not on the hooks train yet? No worries. `react-accessible-shuttle` depends in React 16.8.0+ so if you have that, then you can use without hooks (i.e. in a `class` component) with a some extra effort :smiley: (although we should really use hooks because they make our lives much easier).
0 commit comments