创建React Apps的骨架:essential-react
jopen
10年前
essential-react是一个骨架用于使用ES6构建可测试的React应用程序。
设计目标
- As few tools as possible (no task runners, etc...)
- ES6 with support for legacy browsers (IE 8)
- Testability
- No templates, compose DOM alongside components via JSX
- No stylesheets, leverage Radium for styling in JavaScript
- Session-driven routing using react-router with async data fetching
项目结构
组件被分成2个主要类别:
- common - contains various classes and components that are shared between pages and views
- pages - contains components grouped by the page / view / feature they belong to.