Coder Social home page Coder Social logo

nc-site's Introduction

nc-site

Using react with webpack:

git clone [email protected]:xishanwawa/nc-site.git

cd nc-site/

npm install

如果npm安装比较慢,用淘宝镜像。 $ npm install -g cnpm --registry=https://registry.npm.taobao.org

然后安装 cnpm install

启动项目 npm run dev

开发流程

1, 目录:routes,定义一个路由,路由引用一个业务组件contaniner

2 目录:contaniner,定义业务组件绑定actions输出的方法与reduser输入的状态(自定义UI组件在)

3, 目录:actions,定义方法触发action

4, 目录:reduser,定义reduser, 根据 action.type 改变数据

开发规范

组件命名大写开始

组件目录与组件命名同名

actionTypes 全部大写

reduser 根据action.type修改

contaniner 绑定state用两个$ 例如$$stateHome: state.home

nc-site's People

Contributors

xishanwawa avatar

Forkers

webapp2016

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.