From d407f97d5a9056fe3dab140ece195cb1b334f691 Mon Sep 17 00:00:00 2001 From: Khalid Jebbari Date: Fri, 30 Oct 2020 17:31:39 +0100 Subject: [PATCH] Minor doc fixes - "behind the hood" => "under the hood" (could also be "behind the scene") --- docs/CreateEdit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CreateEdit.md b/docs/CreateEdit.md index 07796afa180..e79b9c4b9a8 100644 --- a/docs/CreateEdit.md +++ b/docs/CreateEdit.md @@ -479,7 +479,7 @@ Alternately, you may need to prepopulate a record based on a *related* record. F **Note** `` is designed to be used in an edit view `` component, not inside a ``. The `Toolbar` is basically for submitting the form, not for going to another resource. -By default, the `` view starts with an empty `record`. However, if the `location` object (injected by [react-router-dom](https://reacttraining.com/react-router/web/api/location)) contains a `record` in its `state`, the `` view uses that `record` instead of the empty object. That's how the `` works behind the hood. +By default, the `` view starts with an empty `record`. However, if the `location` object (injected by [react-router-dom](https://reacttraining.com/react-router/web/api/location)) contains a `record` in its `state`, the `` view uses that `record` instead of the empty object. That's how the `` works under the hood. That means that if you want to create a link to a creation form, presetting *some* values, all you have to do is to set the location `state`. `react-router-dom` provides the `` component for that: