diff --git a/README.md b/README.md index d890b5a..8fad10e 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ import withScrolling from 'react-dnd-scrollzone'; import DragItem from './DragItem'; import './App.css'; -const ScrollingComponent = withScrolling('div'); +const ScrollZone = withScrolling('div'); const ITEMS = [1,2,3,4,5,6,7,8,9,10]; @@ -20,18 +20,18 @@ export default class App extends Component { render() { return ( - + {ITEMS.map(n => ( ))} - + ); } } ``` -Note: You should replace the original `div` you would like to make scrollable with the `ScrollingComponent`. +Note: You should replace the original `div` you would like to make scrollable with the `ScrollZone`. ### Easing Example @@ -69,7 +69,7 @@ function vStrength(box, point) { export default App(props) { return ( - @@ -77,12 +77,12 @@ export default App(props) { {ITEMS.map(n => ( ))} - + ); } ``` -Note: You should replace the original `div` you would like to make scrollable with the `ScrollingComponent`. +Note: You should replace the original `div` you would like to make scrollable with the `ScrollZone`. ### Virtualized Example