Skip to content

Commit 75bd79f

Browse files
committed
Update README.md
1 parent 12ce58b commit 75bd79f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ const SortableList = ({ items }) => {
5757

5858
return (
5959
<Sortable
60-
// Sortable options
60+
// Sortable options (https://github.com/RubaXa/Sortable#options)
6161
options={{
62-
// See all options at https://github.com/RubaXa/Sortable#options
6362
}}
6463

6564
// Use ref to get the sortable instance
65+
// https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute
6666
ref={(c) => {
6767
if (c) {
6868
sortable = c.sortable;
@@ -74,7 +74,7 @@ const SortableList = ({ items }) => {
7474

7575
// The optional onChange method allows you to keep DOM nodes untouched
7676
// and render the sorted items via state change.
77-
// See an example at
77+
// See an example at https://github.com/cheton/react-sortable/#controlled-component
7878
// onChange={(order) => {
7979
// this.setState({ items: order });
8080
// }}
@@ -128,7 +128,7 @@ class App extends React.Component {
128128
<div>
129129
<button type="button" onClick={::this.handleReverseOrder}>Reverse Order</button>
130130
<Sortable
131-
// Check out options at https://github.com/RubaXa/Sortable#options
131+
// See all Sortable options at https://github.com/RubaXa/Sortable#options
132132
options={{
133133
handle: ".my-handle", // Drag handle selector within list items
134134
draggable: ".item" // Specifies which items inside the element should be sortable
@@ -172,7 +172,7 @@ class App extends React.Component {
172172
<div>
173173
<button type="button" onClick={::this.handleReverseOrder}>Reverse Order</button>
174174
<Sortable
175-
// Check out options at https://github.com/RubaXa/Sortable#options
175+
// See all Sortable options at https://github.com/RubaXa/Sortable#options
176176
options={{
177177
handle: ".my-handle", // Drag handle selector within list items
178178
draggable: ".item" // Specifies which items inside the element should be sortable
@@ -230,6 +230,7 @@ const SharedGroup = ({ items }) => {
230230

231231
return (
232232
<Sortable
233+
// See all Sortable options at https://github.com/RubaXa/Sortable#options
233234
options={{
234235
group: 'shared'
235236
}}

0 commit comments

Comments
 (0)