Last active
May 20, 2020 12:39
-
-
Save brlafreniere/1c722c76352e9bd5cd38fca42a5f86ac to your computer and use it in GitHub Desktop.
Is each `<RecordAdmin />` element its own instance, with its own state?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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