【文件属性】:
文件名称:locomotive-react-boilerplate::dashing_away: Locomotive 的 React 项目样板
文件大小:264KB
文件格式:ZIP
更新时间:2021-05-30 06:22:55
CSS
机车React样板
Locomotive 的 React 项目样板。
安装
npm install
用法
# watch
npm run start
# build
npm run build
# build svg
npm run build:svg
# build staging
npm run build:staging
# build production
npm run build:production
组件
要创建组件,您可以复制Example组件。
它被定义为一个功能组件并导入它自己的 scss 文件。
它接受 3 个与 CSS 类相关的道具: option 、 utility和status 。
这些道具将被格式化并使用renderClasses实用程序添加到组件 className 中。
选项的命名空间为- ,实用程序为u- ,状态为is- 。
您必须将类道具定