Coder Social home page Coder Social logo

reactprojectinit's Introduction

项目说明

这是一个简单的react项目初始化部分,在create-react-app脚手架下搭建了redux状态管理库和引入Antd模板库(文件中有详细中文说明)。直接clone下来构建项目是没有问题的,但是你需要优化以下基本内容:

  1. antd按需加载;
  2. 高阶组件修饰符的使用配置;
  3. 路由与redux配合方案;
  4. http异步请求拦截;
  5. 开发环境代理设置及路径优化配置。

good lucky !!!

包管理工具

yarn,请先搭建yarn :https://yarnpkg.com/zh-Hans/

如果已经装了node,可以直接执行以下命令安装yarn:

 npm i yarn -g

首次启动前准备

git clone [email protected]:Evan-90/reactProjectInit.git
cd reactProjectInit
yarn

启动

yarn start

打包构建

yarn build

分支管理

master:主干分支,保证稳定,只有开发完成并测试通过的功能才可以合并到master。master分支会被部署到生产环境。 develop:主要开发分支,用于日常开发。develop分支会被部署到测试环境。

项目结构

signal-react
  • dist   —— 存放打包后的文件,是真正用于部署的成品
  • node_modules  —— 安装的依赖包
  • public  —— html模板
  • src   ——   开发目录

reactprojectinit's People

Contributors

evan-90 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.