Skip to content

MadsHaerup/pure-react-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pure-react-app

prerequisite: npx create-react-app

use: npx pure-react-app

Automatically removes unnecessary cra boilerplate content, and sets up a basic directory structure.

Inspiration for directory structure

The Directory Structure

Src/

  • assets - global static assets such as images, svgs, company logo, etc.
  • components - global shared/reusable components, such as layout (wrappers, navigation), form components,buttons
  • services - JavaScript modules
  • store - Global Redux store
  • utils - Utilities, helpers, constants, and the like
  • views - Can also be called "pages", the majority of the app would be contained here

Removed documents:

Src:

  • App.css
  • reportWebVitals.js
  • App.test.js
  • logo.svg

Public:

  • favicon.ico
  • logo192.png
  • logo512.png

Before with npx create-react-app

create-react-app structure

After with npx pure-react-app

pure-react-app structure

Releases

No releases published

Packages

No packages published