react-draggable
React draggable component
Based on https://github.com/mzabriskie/react-draggable
Installing
$ npm install react react-draggable2
You will also need install React to your top-level project due to #2.
Demo
http://mzabriskie.github.io/react-draggable/example/
Example
/** @jsx React.DOM */var React = Draggable = ; var App = React; { { var delta = offset - prev; if Math >= snap return prev + * snap; return prev; } return { return top: left: ; };} React;
Contributing
- Fork the project
$ npm install && npm run watch
- Make changes
- Add appropriate tests
$ npm test
- If tests don't pass, make them pass.
- Update README with appropriate docs.
- Commit and PR
License
MIT