mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 12:43:05 +00:00
Update 2018-10-23-react-v-16-6.md (#1428)
This commit is contained in:
committed by
Dan Abramov
parent
a50a0765f8
commit
cd5d2ce10b
@@ -46,7 +46,7 @@ In [React 16.3](/blog/2018/03/29/react-v-16-3.html) we introduced the official C
|
||||
const MyContext = React.createContext();
|
||||
```
|
||||
|
||||
We've heard feedback that adopting the new render prop API can be difficult in class components. So we've add a convenience API to [consume a context value from within a class component](/docs/context.html#classcontexttype).
|
||||
We've heard feedback that adopting the new render prop API can be difficult in class components. So we've added a convenience API to [consume a context value from within a class component](/docs/context.html#classcontexttype).
|
||||
|
||||
```js
|
||||
class MyClass extends React.Component {
|
||||
|
||||
Reference in New Issue
Block a user