Browse Source

Remove extra brace (#9910)

main
Mario Souto 8 years ago
committed by Brian Vaughn
parent
commit
56fef536f8
  1. 2
      docs/higher-order-components.md

2
docs/higher-order-components.md

@ -119,7 +119,7 @@ const CommentListWithSubscription = withSubscription(
const BlogPostWithSubscription = withSubscription(
BlogPost,
(DataSource, props) => DataSource.getBlogPost(props.id)
});
);
```
The first parameter is the wrapped component. The second parameter retrieves the data we're interested in, given a `DataSource` and the current props.

Loading…
Cancel
Save