Skip to content

Commit

Permalink
Update CreateEdit.md
Browse files Browse the repository at this point in the history
Typo
  • Loading branch information
pamuche authored Oct 6, 2020
1 parent 2f92a4f commit e3359a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/CreateEdit.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: "The Create and Edit Views"

# The Create and Edit Views

`<Resource>` maps URLs to components - it takes care or *routing*. When you set a component as the `create` prop for a Resource, react-admin renders that component when users go to the `/[resource]/create` URL. When you set a component as the `edit` prop for a resource, react-admin renders that component when users go to the `/[resource]/:id` URL.
`<Resource>` maps URLs to components - it takes care of *routing*. When you set a component as the `create` prop for a Resource, react-admin renders that component when users go to the `/[resource]/create` URL. When you set a component as the `edit` prop for a resource, react-admin renders that component when users go to the `/[resource]/:id` URL.

```
<Resource name="posts" create={PostCreate} edit={PostEdit} />
Expand Down

0 comments on commit e3359a6

Please sign in to comment.