How to Create a React MUI Project from Scratch

101 字
1 分钟
How to Create a React MUI Project from Scratch

1 Create the React project#

Firstly, run the command that would create the project outside the target folder:

Terminal window
abc@34d63bfc5d13:~/workspace$ npx create-react-app <your-project-name>

Waiting for the following information to appear:

Terminal window
We suggest that you begin by typing:
cd <your-project-name>
npm start
Happy hacking!

This means the installation has been completed!

The version installed in this article is the latest stable version as of the time of publication: v5.

To begin with, go to the project folder:

Terminal window
cd <your-project-name>

Then use pnpm to resolve dependencies(also npm or yarn ):

Terminal window
pnpm add @mui/material @emotion/react @emotion/styled

Then install Roboto font and icons:

Terminal window
pnpm add @fontsource/roboto
pnpm add @mui/icons-material

Well begun, half done; Happy Hacking!

支持与分享

如果这篇文章对你有帮助,欢迎分享给更多人或赞助支持!

赞助
How to Create a React MUI Project from Scratch
https://www.0x3f.foo/posts/reactmui/
作者
Dignite
发布于
2024-04-03
许可协议
CC BY-NC-SA 4.0

评论区

Profile Image of the Author
Dignite
When nothing goes right, go left.
公告
欢迎来到我的博客!这是一则示例公告。
分类
标签
站点统计
文章
146
分类
5
标签
271
总字数
314,753
运行时长
0
最后活动
0 天前

目录