#react-isomorphic-skeleton ##0.1.3 changelog 升级了很多生态组件,移除了一些没用的依赖; react升级到了16.3.2
这是一个全功能的react同构脚手架,它有你想要的一切:
- 每个路由的组件和逻辑都放在了单独的文件夹,便于以后单独提出;
- 做到了服务端同构渲染;
- 做到了html, css, js的根据路由按需加载;
- 比较纯净,没有太多的轮子;
- 集成了react-redux和react-router(3.2);
- 支持hot-replace;
- 同时支持使用Browsersync进行真机调试;
- 集成antd框架并支持最小化编译输出,参见src/components/app;
- 集成Helmet防范xss攻击;
- 支持scss;
- 支持微信浏览器;
- 支持className不可变的第三方ui框架如antd按需加载, 参见src/components/app;
- 支持css moduler;
入门同学推荐使用Next.js这种上手容易的 与Next.js不同的是
- css更好用,支持scss,less等直接引用;
- 组件级别支持服务端渲染;
##注意 node.js 版本 > 5.5
npm版本 > 3.0 ##用法
git clone https://github.com/Jacky-fe/react-isomorphic-skeleton
cd react-isomorphic-skeleton
npm install
npm start
##感谢 & 相关项目 代码文件基于React Production Starter
编译脚本文件基于React Start Kit