Skip to content

Commit

Permalink
Merge pull request #5355 from pamuche/patch-1
Browse files Browse the repository at this point in the history
Update CreateEdit.md
  • Loading branch information
djhi committed Oct 6, 2020
2 parents 6415b07 + e3359a6 commit d8276f7
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 d8276f7

Please sign in to comment.