Update 2018-10-23-react-v-16-6.md (#1428)

This commit is contained in:
frankymacster
2018-11-28 14:49:04 -05:00
committed by Dan Abramov
parent a50a0765f8
commit cd5d2ce10b

View File

@@ -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 {