Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
arnthor3 committed May 23, 2017
1 parent 3116b95 commit 4f1742b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const SmallRow = () => (
</div>
);

export default ReactDelayRender({ delay: 500 })(SmallApp);
export default ReactDelayRender({ delay: 500 })(SmallRow);

```

Expand All @@ -35,13 +35,13 @@ You can use the delay on the delayed component and the children as well.
``` js
import Delay from 'react-delay-render';

const delay = (
const Delayed = () => (
<MyDelayedComponent>
<MyOtherDelayedComponent />
<MyOtherDelayedComponentChild />
</MyDelayedComponent>
);

export default Delay({ delay: 200 })(delay);
export default Delay({ delay: 200 })(Delayed);
```

### onRender
Expand All @@ -61,5 +61,5 @@ const ExampleTwo = () => (
</DelayedComponent>
);

export default Delay({delay: 500, onRender: render})()
export default Delay({delay: 500, onRender: render})(ExampleTwo)

0 comments on commit 4f1742b

Please sign in to comment.