GithubHelp home page GithubHelp logo

first-react-app's Introduction

下载

git clone https://github.com/minhuaF/first-react-app

安装

$ npm install

编译生成目标文件

$ npm run build 

启动

$ npm start

目录结构

.
├── dist                        # 目标文件
├── src
│   ├── assets                  # 公共的资源 
│   │   ├── img                 # 图片 
│   │   └── css
│   │       ├── base.sass        # 重置的样式表       
│   │       └── common.sass      # 公用的样式表
│   │   
│   ├── components              # React component (公用的模块 or 可以独立的模块)
│   │   ├── Header              # Header component 
│   │   │   ├── assets          # assets
│   │   │   ├── index.jsx       # jsx
│   │   │   └── style.sass      # sass
│   │   ├── index.js            # component api
│   │   └── other               # other component 
│   │
│   ├── containers              # React Page  
│   │   ├── Login               # Login page 
│   │   │   ├── assets          # assets
│   │   │   ├── modules         # requesting and rendering (后期加上action,reducers,contants)
│   │   │   ├── index.jsx       # jsx
│   │   │   └── style.sass      # sass
│   │   ├── index.js            # containers api
│   │   └── other               # other page 
│   │
│   ├── util                    # 工具类
│   │   ├── index.js            # interface (统一export)
│   │   ├── request.util.js          # request util 
│   │   └── other
│   │
│   ├── lang                    # 语言配置
│   │   ├── en.js               
│   │   └── zh.js
│   │
│   ├── app.js                  # 入口文件
│   ├── routes.js               # 浏览器端路由配置
│   └── index.html              # SPA 模板
│   
├── .babelrc                    # babel config
├── .gitignore                  # git ignore config 
├── server.js                   # webpack server  
├── package.json   
└── webpack.config.js           # 构建配置(内部区分开发环境和线上环境)


ps:详细笔记请移步wiki

first-react-app's People

Contributors

minhuaf avatar

Watchers

 avatar  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.