Skip to content

Instantly share code, notes, and snippets.

@jcarroll2007
Last active March 23, 2021 12:51
Show Gist options
  • Select an option

  • Save jcarroll2007/8421e6fd4885e22d781acd4550fdb22b to your computer and use it in GitHub Desktop.

Select an option

Save jcarroll2007/8421e6fd4885e22d781acd4550fdb22b to your computer and use it in GitHub Desktop.
React Architecture Blog Post: Create a Character Modal
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