1.0.1 • Published 4 years ago

cra-template-master v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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.