diff --git a/react-docs/source/using-with-types.md b/react-docs/source/using-with-types.md index 2c60e187375..e2f2b0a82fd 100644 --- a/react-docs/source/using-with-types.md +++ b/react-docs/source/using-with-types.md @@ -402,7 +402,7 @@ const withCharacter = graphql(HERO_QUERY, { }) }); -export default class Character extends React.Component, {}> { +class Character extends React.Component, {}> { render(){ const { loading, hero, error } = this.props.data; if (loading) return
Loading
; @@ -410,6 +410,8 @@ export default class Character extends React.Componentusing the `name` property