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.infvar.com/posts/reactmui/ 相关文章 智能推荐
1
next.js 解决 `x-forwarded-host` header does not match `origin` header with value from a forwarded Server Actions request
实验室 2025-01-07
2
迁站记:自旧域至新域,自 Jekyll 至 Astro
展览厅 记一次博客由旧域迁移至新域,并由 Jekyll 更易为 Astro 之经过与所感。
3
在受限 Docker 容器(2核4GB)内通过 QEMU 运行完整 Ubuntu 22.04
实验室 详细记录在无法使用 KVM 的受限 Docker 环境中,使用 QEMU 软件模拟 + Cloud-Init 成功运行 Ubuntu 虚拟机的完整流程、踩坑记录与性能优化。
4
三星平板 SM-P615C 刷机 LineageOS
实验室 学海平板洋垃圾太卡了,刷新系统焕发新生。
5
从 Claw Cloud Run 迁移 Casdoor:一次被迫重构后的数据初始化修复记录
实验室 记录一次因 Claw Cloud Run 服务不可用导致的 Casdoor 迁移过程,以及在 data initialization 阶段因 ID 结构不一致引发的 panic 修复方案。
随机文章 随机推荐
无穷量?