dsuryd / dotNetify-react-template

Real-time React SPA template using dotNetify.
https://dotnetify.net/react
Apache License 2.0
203 stars 57 forks source link

Update material-ui? #30

Closed fastrocket closed 4 years ago

fastrocket commented 5 years ago

I wanted to use Tables from Material-UI (https://material-ui.com/demos/tables/), but the version installed with the Dotnetify React Demo VS2017 didn't seem to have it. So I did an "npm install @material-ui/core" which seemed to work (haven't integrated with the backend yet), but now there are two versions of material-ui in the package.json file.

I'm relatively new to React, so I was curious what the proper way to add/update the latest Material-UI to Dotnetify was?

dsuryd commented 5 years ago

The template uses an old version, and it seems the package signature has changed. You can uninstall that old one, but no guarantee things will stay working if the new version happens to have breaking changes.

roozbehid-ic commented 5 years ago

I tried to do the update but it was hard! I have a really ugly UI now! I wish someone do a PR to make the update...I couldnt :(

dsuryd commented 5 years ago

I wish someone would do a PR too :) I did look at it a while ago, and agree it's pretty hard since they did so many breaking changes. I think the most sensible thing would be to start fresh from their latest template here: https://www.creative-tim.com/product/material-dashboard-react, and integrate it with dotNetify. This should be a much easier path.

dsuryd commented 4 years ago

The template has been updated to latest Material UI and .NET Core 3.0.