1.3.0 • Published 4 years ago

@britannica/cra-template v1.3.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

@britannica/cra-template

Britannica's create-react-app template

Usage

$ npx create-react-app --template @britannica/cra-template

In the box

  • Built with Reactstrap
  • React Router w/ routing utility methods

    // When defining routes
    <Route path={Routes.POST.path} /> // <Route path="/post/:id" />
    
    // When building links
    <Link to={Routes.POST.toLink({ id: 123 })} /> // <Link to="/post/123" />
  • Create resusable layouts using Templates

    // In our example, DefaultTemplate contains our Header and Footer, which will automatically be included
    const MyPage = () => (
      <DefaultTemplate>
        <Container>
          <h1>My Page</h1>
          {/* ...the rest of the page */}
        </Container>
      </DefaultTemplate>
    );
  • Automatic linting on commit

To-do

  • Add Storybook configuration
  • Add stories for components
  • Add tests for components
  • Add generate-react-cli.json configuration
  • Remove <Fragment /> from *.lazy.js files
1.3.0

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago