Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cra-template-wdever

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cra-template-wdever

The base template for Hanlight.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

cra-template-wdever

Publish

Template for my side projects.

EXAMPLE

Modules

  • default CRA Typescript modules
  • redux
  • redux-saga
  • redux-toolkit
  • axios
  • moment
  • query-string
  • polyfill
  • react-router-dom
  • styled-components

Config

  • ESLint with airbnb rule and Typescript
  • Prettier

Architecture

  • public : CRA's default public dir
  • src
    • assets : Some assets like fonts / images
    • components : All of your components. but NO ROUTE
    • hooks : Custom hooks that access to redux store or dispatch actions
    • pages : Just route your pages. combine components.
    • store : Write redux code. Ducks pattern or separate each files? It's your choice
      • (example of separating each files) action
      • model
      • reducer
      • saga
    • utils : A collection of useful things like functions, custom hooks, utility styles, utility types
    • App.tsx : Combine all your pages and route them
    • root.tsx : Base settings for redux, react-router-dom, global style
  • .env : Cutom enviroment var
  • .prettierrc: Prettier configuration
  • .eslintrc.json : ESLint configuration

Usage

To use this template, add --template wdever when creating a new app.

For example:

npx create-react-app my-app --template wdever

# or

yarn create react-app my-app --template wdever

Keywords

FAQs

Package last updated on 05 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc