Skip to content

Commit 06c42f3

Browse files
authored
Update context.md
1 parent f0dc5fb commit 06c42f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class MyClass extends React.Component {
161161
MyClass.contextType = MyContext;
162162
```
163163

164-
The `contextType` property on a class can be assigned a Context object created by [`React.createContext()`](#reactcreatecontext). This lets you consume the nearest current value of that Context type using `this.context`. You can reference this in any of the life-cycles including the render function.
164+
The `contextType` property on a class can be assigned a Context object created by [`React.createContext()`](#reactcreatecontext). This lets you consume the nearest current value of that Context type using `this.context`. You can reference this in any of the lifecycle methods including the render function.
165165

166166
> Note:
167167
>

0 commit comments

Comments
 (0)