Skip to content

Commit 1c31c6e

Browse files
committed
Added extra info on React.DOM elements being viable children and how to make custom React components viable children
1 parent c4d259f commit 1c31c6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ In addition, the child element must provide support for the following props:
4444
- `onTouchStart` is used along with onTouchEnd to keep track of dragging state.
4545
- `onTouchEnd` is used along with onTouchStart to keep track of dragging state.
4646

47+
React.DOM elements support the above six properties by default, so you may use those elements as children without any changes. If you wish to use a React component you created, you might find [this React page](https://facebook.github.io/react/docs/transferring-props.html) helpful.
48+
4749
Props:
4850

4951
**`axis`**: determines which axis the draggable can move. Accepted values:

0 commit comments

Comments
 (0)