mui / material-ui

Material UI: Ready-to-use foundational React components, free forever. It includes Material UI, which implements Google's Material Design.
https://mui.com/material-ui/
MIT License
91.86k stars 31.57k forks source link

[remix][vite] update remix example to use Remix/Vite latest template #42096

Open mahmoudmoravej opened 2 weeks ago

mahmoudmoravej commented 2 weeks ago

What?

It is a clean integration of Remix 2.0 + Vite and MUI 5.14. It helps you to quickly integrate and use MUI inside your own Remix projects.

Why?

The current original materila-ui-remix example is outdated and really hard to integrate with Remix changes. It has done alot for emotion integration but it is not clear if we still need them or not (seems not). We need an alternative to help devs quickly integrate MUI to their own app.

How?

it is based on basic Remix template, i.e. npx create-remix@latest which is based on Vite. Keeping the baic template should help you quickly find changes and move them to your own project. The "Files Changed" section in this PR shows the required changes you need to do to bring MUI to your own project.

Notes:

Next?

We still need a thourough review for original contibuters to make sure this approach doesn't change anything wrongly. If everything is fine, we should be ok to alter the original MUI example with this approach.