项目作者: alexandr-g

项目描述 :
A light weight Create React App template with Recoil for state management
高级语言: HTML
项目地址: git://github.com/alexandr-g/cra-template-recoil.git
创建时间: 2020-05-19T11:02:39Z
项目社区:https://github.com/alexandr-g/cra-template-recoil

开源协议:MIT License

下载


npm version
npm downloads

A light weight Create React App template with Recoil

This template provides you a project with Recoil setup.
Recoil is a state management library for React developed and used by Facebook.
This template comes in handy if you want to play with Recoil or start a new project with it.

Usage

  1. npx create-react-app your-project-name --template recoil

Or

  1. yarn create react-app your-project-name --template recoil

npx command installs the most recent stable version of CRA from npm.

--template parameter points to this template, note that cra-template- prefix is omitted.

Available Scripts

In the project root directory, you can run:

  • yarn start - runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

  • yarn test - launches the test runner in the interactive watch mode.

  • yarn build - builds the app for production to the build folder.

  • yarn eject - exposes content of react-script package

How to create custom Create React App (CRA) templates article

I created a step by step guide on how to create your own templates. Check it on

@alexgrischuk/how-to-create-custom-create-react-app-cra-templates-73a5196edeb">View on Medium

View on personal blog

View on dev.to

My other templates

Create React App template with TypeScript, Redux, React Router, Enzyme and custom ESlint

Thank you

I hope this template will be helpful for you 🙏