Browse Source

Fix error (#2370)

main
Michael Lustig 5 years ago
committed by Alex Krolick
parent
commit
9705d2796b
  1. 2
      content/docs/context.md

2
content/docs/context.md

@ -201,7 +201,7 @@ Requires a [function as a child](/docs/render-props.html#using-props-other-than-
Context object accepts a `displayName` string property. React DevTools uses this string to determine what to display for the context.
For example, the following component will appear as MyContext in the DevTools:
For example, the following component will appear as MyDisplayName in the DevTools:
```js{2}
const MyContext = React.createContext(/* some value */);

Loading…
Cancel
Save