Skip to content

Commit

Permalink
docs: add section title to the ComponentLookup description
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Sep 29, 2018
1 parent d77e080 commit 51f84b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ const Example = () => {

`react-from-json` also supports flat, non-recursive structures via the special `<ComponentLookup />` component. This is useful when working with typed systems like GraphQL, and you need to avoid unions.

The `<ComponentLookup />` simply maps to another component defined in a `components` object. If you were using it in React, you would use it like:
#### The `<ComponentLookup />` component

`<ComponentLookup />` simply maps to another component defined in a `components` object. If you were using it in React, you would use it like:

```jsx
<ComponentLookup componentType="Button" componentIndex={0} />
Expand Down

0 comments on commit 51f84b0

Please sign in to comment.