一直学 REACT + METEOR 但路由部分有点问题,参考一下:基于 React.js + Redux + Bootstrap 的 Ruby China 示例php
http://react-china.org/t/react-js-redux-bootstrap-ruby-china/8752css
示例的演示地址:http://ruby-china.liuzhen.me/ 很好!!!html
React.js + RubyChina 项目前端
代码地址: https://github.com/liuzhenangel/react-ruby-china9react
示例的演示地址 Demo: http://ruby-china.liuzhen.me18git
react-ruby-china 项目是一个利用 react, react-dom, react-redux, react-router, redux, es6, redux-thunk 实现的 RubyChina 社区克隆项目.es6
这是一个先后端分离项目, 前端主要是 react, redux, es6, css 框架使用了 bootstrap. 后端利用 ruby-china 开放的 api. 支持响应式布局. 部分功能仍在持续完善中.github
能够根据下方列出的官方文档里面有详细说明, 这里介绍一下 create-react-app
这个命令行脚手架工具. npm install create-react-app -g
以后执行 create-react-app my-app
, 而后 npm start
就能运行了.
关于 create-react-app
详情能够点击 这里1 查看.npm
在学习 React 过程当中, React.js 文档作的没有 Vue.js 的好, 文档中的例子各类不一样语法. 对着照作不必定对, 也不方便查询, 踩过不少坑后给你们作个分享.redux
React 中文文档(这个文档很好查询, 可是不少内容写的太简单了没讲清楚, 并且内容不全):https://hulufei.gitbooks.io/react-tutorial/content/index.html3
React 官方英文文档: https://facebook.github.io/react/docs/getting-started.html
React 中文文档(这个文档比较差): http://reactjs.cn/react/docs/getting-started-zh-CN.html1
极客学院提供的 React 中文文档: http://wiki.jikexueyuan.com/project/react/3
另外一个 Reac 中文文档(这个比较全面, 可是不便于搜索): http://www.phperz.com/article/15/0712/140537.html2
React Router 中文文档: https://react-guide.github.io/react-router-cn/2
RubyChina API: https://ruby-china.org/api1
ReacChina 社区(这里面有不少资源): http://react-china.org/2