title: Required props for List and Edit components in route when using CustomApp
body: <p>I'm trying to upgrade a custom app from admin-on-rest to react-admin (v2.15). After I figured out that the <code>declareResources</code> action was "replaced" by <code>registerResource</code> most seemed ok, but I still struggle with the List and Edit components route definitions that complains about missing required props (compared to what props are defined in <a href="https://marmelab.com/react-admin/CustomApp.html%22the%20documentation%22" rel="nofollow noreferrer">the custom app documentation</a>).</p>
  
  <p>If I define a List component like this it works fine:</p>
  
  <pre><code>&lt;Route exact path="/mystuffs" render={(routeProps) =&gt; &lt;MystuffList hasCreate hasEdit hasShow={false} hasList resource="mystuffs" basePath="/mystuffs" {...routeProps} /&gt;} /&gt;
  </code></pre>
  
  <p>Similar the only way I can get an Edit-component to work is to pass the required props like so:</p>
  
  <pre><code>&lt;Route exact path="/mystuffs/:id" render={(routeProps) =&gt; &lt;MystuffEdit resource="mystuffs" id={routeProps.match.params.id} basePath="/mystuffs" {...routeProps} /&gt;} /&gt;
  </code></pre>
  
  <p>But to me it seems a bit tedious to define all of these props (i.e was not required with admin-on-rest). Is this the correct way of doing it or am I missing something obvious here since <a href="https://marmelab.com/react-admin/CustomApp.html%22the%20documentation%22" rel="nofollow noreferrer">the custom app documentation</a> doesn't specify all of the required props?</p>