Skip to content

Instantly share code, notes, and snippets.

@brlafreniere
Last active May 20, 2020 12:39
Show Gist options
  • Save brlafreniere/1c722c76352e9bd5cd38fca42a5f86ac to your computer and use it in GitHub Desktop.
Save brlafreniere/1c722c76352e9bd5cd38fca42a5f86ac to your computer and use it in GitHub Desktop.
Is each `<RecordAdmin />` element its own instance, with its own state?
<Switch>
<Route path="/admin/books">
<RecordAdmin singular="book" plural="books" table={BookTable} form={BookForm} />
</Route>
<Route path="/admin/authors">
<RecordAdmin singular="author" plural="authors" table={AuthorTable} form={AuthorForm} />
</Route>
<Route path="/admin/branches">
<RecordAdmin singular="branch" plural="branches" table={BranchTable} form={BranchForm} />
</Route>
</Switch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment