# ymd_mobile **Repository Path**: youmidai/ymd_mobile ## Basic Information - **Project Name**: ymd_mobile - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-05-05 - **Last Updated**: 2021-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #react-boilerplate ── 一个简单灵活的React脚手架 [react-boilerplate](https://github.com/mervynyang/react-boilerplate) ### 开始 ```bash $ git clone https://github.com/mervynyang/react-boilerplate.git $ cd react-boilerplate $ npm install # Install project dependencies $ npm start # Compile and launch ``` ### 命令 ```bash $ npm run build # Build $ npm run pro # Launch dist, Listening at http://localhost:9200 $ npm run lint # Launch eslint ``` ### styles - 默认是支持sass,就目前的流行程度和语法设计上来看,sass是优于less的。所以,建议你用sass去写css。 - CSS Module我个人认为是非常不错的css模块化解决方案,像facebook也有在用,推荐使用。 - React引入CSS Module其实是比较麻烦的,你需要这么写: ``` import styles from "./style.css";
``` 所以我用到了`react-css-modules`,现在你只需要这么写: ``` import "./style.css"