natewong1313 / go-react-ssr

Build full-stack web apps with Go & React. End to end type-safety and lightning fast ⚡️
MIT License
107 stars 8 forks source link

Server breaks with anything that is not React #4

Open ManoloTonto1 opened 11 months ago

ManoloTonto1 commented 11 months ago

Hey, i was just wondering. How would this work with other packages like react router dom or Mui or framer motion. Basically, anything within node_modules that is not react or taillwind

Let me know!!

edit

Tried using MUI but the server just never returns a response.

natewong1313 commented 11 months ago

Looking in to this! For MUI specifically, its an issue with the way they handle server rendering (https://mui.com/material-ui/guides/server-rendering/) and I'll have to add support for that. As far as react router dom, the beauty of this plugin is that you can handle routing server side and you won't need that library to handle routing.