This is my first time using the element framework in a react project. I encountered some very simple problems, but it took me a long time to solve them. I wrote a blog to record them. 1. Installation: Download in the project directory: npm i element-react --save npm install element-theme-default --save Note: The Element official website mentioned this in the quick start guide 2. Global references Globally import in index.js under the project 3. Reference the element components you need in the project May report an error Solution: Download the dependency in the project npm install react-hot-loader@next --save 4. Introducing components may still result in errors For example, I introduced the revolving lantern as follows If the error is reported above, the solution is to introduce Carousel If other components are referenced and errors are reported, the solution is as above This is the end of this article about how to use Element in React projects. For more information about using Element in React projects, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Use of MySQL official export tool mysqlpump
>>: Webpack loads css files and its configuration method
=================================================...
This article mainly focuses on the installation a...
Table of contents 1. Installation of JDK1.8 under...
During the development process, I often encounter...
This article example shares the specific code of ...
Table of contents 1. Download MySQL 1.1 Download ...
Block-level element features : •Always occupies a ...
apache: create virtual host based on port Take cr...
When making a web page, we usually need to consid...
Step 1: View the current kernel rew $ uname -a Li...
Create an HTML page with an unordered list of at l...
In the previous blog, we talked about using Nginx...
Table of contents 1. Core commands 2. Common comm...
This article introduces how to install Chrome bro...
Method 1: To use respin, follow these steps: sudo...