Last active
March 23, 2021 12:51
-
-
Save jcarroll2007/8421e6fd4885e22d781acd4550fdb22b to your computer and use it in GitHub Desktop.
React Architecture Blog Post: Create a Character Modal
This file contains hidden or 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
| import React from 'react'; | |
| import { Route } from 'react-router-dom'; | |
| import { Page } from '../../components/Page'; | |
| import { CharacterListContainer } from '../../containers/CharacterList'; | |
| import { CHARACTERS_CREATE } from '../../routes'; | |
| import { CharactersCreateView } from '../CharactersCreate'; | |
| export const CharactersView: React.FunctionComponent = () => { | |
| return ( | |
| <Page> | |
| <CharacterListContainer createCharacterPath={CHARACTERS_CREATE} /> | |
| <Route | |
| exact | |
| path={CHARACTERS_CREATE} | |
| component={CharactersCreateView} | |
| /> | |
| </Page> | |
| ) | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment