Skip to content

Commit 738b64b

Browse files
committed
link to react context in docs
1 parent 8949ba4 commit 738b64b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ npm i react-scroll-parallax --save
2020

2121
## Usage
2222

23-
Wrap your component tree that will contain `<Parallax />` components with the `<ParallaxProvider />`;
23+
Wrap your component tree that will contain `<Parallax />` components with the `<ParallaxProvider />`. For example:
2424

2525
```jsx
2626
...
@@ -121,7 +121,7 @@ Optionally pass a tag name to be applied to the outer most parallax element. For
121121

122122
## Parallax Controller Context
123123

124-
Access the Parallax Controller via context in any components rendered within a `<ParallaxProvider />` by defining the `contextTypes` like so:
124+
Access the Parallax Controller via [React context](https://facebook.github.io/react/docs/context.html) in any components rendered within a `<ParallaxProvider />` by defining the `contextTypes` like so:
125125

126126
```jsx
127127
class Foo extends Component {

0 commit comments

Comments
 (0)