Pixiv - KiraraShss
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:
abc@34d63bfc5d13:~/workspace$ npx create-react-app <your-project-name>
Waiting for the following information to appear:
We suggest that you begin by typing:
cd <your-project-name> npm start
Happy hacking!This means the installation has been completed!
2 Install MUI related packages
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:
cd <your-project-name>Then use pnpm to resolve dependencies(also npm or yarn ):
pnpm add @mui/material @emotion/react @emotion/styled
Then install Roboto font and icons:
pnpm add @fontsource/robotopnpm add @mui/icons-materialWell begun, half done; Happy Hacking!
支持与分享
如果这篇文章对你有帮助,欢迎分享给更多人或赞助支持!
How to Create a React MUI Project from Scratch
https://www.0x3f.foo/posts/reactmui/ 相关文章 智能推荐
1
迁站记:自旧域至新域,自 Jekyll 至 Astro
展览厅 记一次博客由旧域迁移至新域,并由 Jekyll 更易为 Astro 之经过与所感。
2
next.js 解决 `x-forwarded-host` header does not match `origin` header with value from a forwarded Server Actions request
实验室 2025-01-07
3
Chrome 将我的后台登录页标记为危险:一次 Safe Browsing 误判排查记录
实验室 记录一次后台登录页面被 Chrome 标记为 Social Engineering 的排查与修复全过程,以及如何避免再次误判。
4
使用AI开发纯血鸿蒙arkTS应用的进阶指南(VSCode+Copilot)
实验室 2026-02-16
5
【爽文】万律之主:从AK高考开始。
展览厅 2026-02-13
随机文章 随机推荐
无穷大?