GithubHelp home page GithubHelp logo

sandysenhero / react-cnode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lzxb/react-cnode

1.0 2.0 0.0 12.33 MB

基于webpack + react + react-router + redux + less + flex-css-layout + ES6 的React版cnode社区

HTML 6.51% JavaScript 75.56% CSS 17.93%

react-cnode's Introduction

react-cnode

基于webpack + react + react-router + redux + less + flex-css-layout + ES6 的React版cnode社区

安装

  git clone https://github.com/1340641314/react-cnode.git
  cd react-cnode
  npm install (安装依赖模块)
  npm install webpack -g (没有安装webpack的需要安装)

运行

  npm webpack -p (编译成生产环境)
  npm start (启动服务器,访问:http://localhost:3000/)
  

总结

  1.UI是自己设计的,虽然我并不会PS这些工具。
  2.使用了flex-css-layout模块布局,最大的感觉就是在写css不需要考虑在css中如何写布局,大大的提高了我的效率。
  3.在移动端中,列表数据达到上百条之后,性能仍然是不容乐乎,有待于进一步的优化。
  4.ES6中的箭头函数和变量解构赋值,最大的感受在开发效率上。提高很多。
  5.使用高阶组件封装获取数据的流程,让页面组件专注于页面渲染,避免了每个页面都需要写一次获取数据的流程,提高开发效率
  6.redux听起来很美好,在实际操作的过程中,大大的复杂了创建一个页面的难度,最后只能将其封装起来,简化这个过程(其实我对redux不怎么理解)
  7.为了还原页面状态,比如后退时的滚动条位置,还是花费了不少功夫
  8.开发移动到应用,还是使用字体图标爽。
  9.借助webpack可以生成离线缓存清单,px转rem,ES6编译成ES5,模块化开发,代码压缩混淆......
  10.前端自动化,工程化,给前端的发展起到了很大的推动作用

小广告

  深圳html5开发者社群:170761660
  NodeJS前端分享群:133240225

截图

Alt text

Alt text

Alt text

Alt text

Alt text

Alt text

Alt text

Alt text

Alt text

Alt text

Alt text

react-cnode's People

Contributors

lzxb avatar

Stargazers

 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.