简体   繁体   English

使用Create React App安装

[英]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.

相关问题 如何在create-react-app中设置babel-plugin-react-css-modules? - How to setup babel-plugin-react-css-modules in create-react-app? babel-plugin-react-css-modules不支持背景图片 - babel-plugin-react-css-modules does not support background images 无法使用“babel-plugin-react-css-modules”导入CSS - 获取“ParseError:Unexpected token” - Unable to import CSS with “babel-plugin-react-css-modules” - get “ParseError: Unexpected token” React - 在 css 模块中全局使用 Bootstrap - React - Use Bootstrap globally with css modules 升级babel-plugin-react-css-modules后,模块构建失败:SyntaxError:意外令牌…“ - Module build failed: SyntaxError: Unexpected token …" after upgrade babel-plugin-react-css-modules 使用 babel-plugin-react-css-modules 的子组件的类名不正确 - Incorrect className of child component using babel-plugin-react-css-modules react-css-modules (babel) 和 css-loader (webpack) 如何协同工作? - How do react-css-modules (babel) and css-loader (webpack) work together? Material-UI - 支持 babel-plugin-react-css-modules 和 rtl app - Material-UI - Support babel-plugin-react-css-modules and rtl app 如何使用 React 设置 babel-plugin-react-css-modules? - How to set up babel-plugin-react-css-modules with React? 如何在反应中使用 css 模块模式覆盖外部模块类 - How to override external module class with css module pattern in react
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM