Skip to content

A template for Create React App with router, styled-components and google analytics

License

Notifications You must be signed in to change notification settings

peter-stuhlmann/cra-template-master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRA-Template "Master"

MIT License Code size open issues closed issues

A template for Create React App.

Usage

npx create-react-app %PROJECT_NAME% --template master

or

yarn create react-app %PROJECT_NAME% --template master

Features

  • Context (components/Context.js)
  • Router (components/Router.js)
  • Error 404 page (components/NotFound.js)
  • tracking with google analytics (you have to change the tracking code in helpers/analytics.js)

Dependencies

  • react-ga (Google Analytics)
  • react-router-dom (for multiple routes)
  • styled-components (allows you to write actual CSS code to style your components)

Structure

[your-app-name]/
  package.json
  public/
    favicon.ico
    index.html
    logo192.png
    logo512.png
    manifest.json
    robots.txt
  src/
    components/
      Context.js
      Home.js
      NotFound.js
      Router.js
    helpers/
      analytics.js
    App.js
    index.js
  .gitignore

License

Licensed under the MIT license by Peter R. Stuhlmann.

About

A template for Create React App with router, styled-components and google analytics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published