Coder Social home page Coder Social logo

react-xx / react-cnode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lzxb/react-cnode

0.0 1.0 0.0 14.15 MB

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

Home Page: https://lzxb.github.io/react-cnode/

HTML 7.00% JavaScript 75.22% CSS 17.78%

react-cnode's Introduction

react-cnode

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

demo

demo

下载

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

运行(nodejs 6.0+)

  npm run dev (开发版本访问:http://localhost:3000/)
  npm run dist (发布生产版本)

功能

  1.登录退出
  2.列表分页,查看帖子
  3.发帖,回复帖子
  4.我的消息
  5.个人中心
  6.查看别人的资料

总结

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

状态树

Alt text

小广告

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

截图

截图

截图

截图

截图

截图

截图

截图

截图

截图

截图

截图

react-cnode's People

Contributors

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