[英]Installation with Create React App
I'm sorry for asking what may be an obvious question to most, but I'm lost. 很抱歉问到对大多数人来说显而易见的问题,但我迷路了。 I have created a react project with create-react-app.
我已经用create-react-app创建了一个React项目。 I want to add a third party library (Ant Design UI Framework) that uses .css styles.
我想添加使用.css样式的第三方库(Ant Design UI框架)。 Ant will use global .css and the rest of my application can then use styleName.
Ant将使用全局.css,然后我的其他应用程序可以使用styleName。
After running npm install babel-plugin-react-css-modules --save
what do I have to do to get this running? 运行
npm install babel-plugin-react-css-modules --save
,我必须做些什么才能npm install babel-plugin-react-css-modules --save
运行? The documentation references the configuration but the individual steps required properly configure the app aren't clear at all—at least to me. 文档引用了配置,但是正确配置应用程序所需的各个步骤并不清楚(至少对我而言)。
Can someone help with a bit of an "idiot's guide" to setting this up, and detail some of the steps? 有人可以帮忙设置一下“白痴指南”,并详细说明一些步骤吗?
Thanks, 谢谢,
Chris 克里斯
Ant Design also have react native library as you can see here 您可以在此处看到Ant Design还具有React本机库
You just need to run the following command on your project root to install it: 您只需要在项目根目录上运行以下命令即可安装它:
$ npm install antd-mobile --save
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.