Code Monkey home page Code Monkey logo

todolist-react's Introduction

启动

  • cnpm install
  • npm start

相关依赖

  • npm install antd --save
  • npm install -save redux
  • npm install -save axios
  • pm install --save redux-thunk
  • npm install --save redux-saga

toDoList

- react+redux 实现的todolist小demo
- axios 获取数据dispatch到store,数据通过easy mock 模拟
- 输入框输入添加,数据条点击删除

一些总结

- react-组件逻辑和样式相分离,可以提高性能
- 常量可单独分离,减少错误
-  Reducer 里只能接受state, 不能改变state,可深度拷贝返回新对象
- 方法定义记得绑定this
- 

todolist-react's People

Contributors

zhouhanging avatar

Stargazers

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