Skip to content

Commit

Permalink
Merge pull request #4289 from ekalinin/patch-1
Browse files Browse the repository at this point in the history
Fix a typo in example
  • Loading branch information
djhi authored Jan 14, 2020
2 parents 7014d82 + b425ad7 commit 54e10a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-core/src/dataProvider/useCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import useMutation from './useMutation';
* const like = { postId: record.id };
* const [create, { loading, error }] = useCreate('likes', like);
* if (error) { return <p>ERROR</p>; }
* return <button disabled={loading} onClick={create}>Like</div>;
* return <button disabled={loading} onClick={create}>Like</button>;
* };
*/
const useCreate = (resource: string, data: any = {}, options?: any) =>
Expand Down

0 comments on commit 54e10a9

Please sign in to comment.