Giter Club home page Giter Club logo

Comments (6)

nattaaek avatar nattaaek commented on September 25, 2024

I'm not sure what the benefit of using this plugin is. right now we using react-router-dom in order to do routing stuff. and MUI as the main styling. I knew that tailwind is more lightweight but for me my concern it might end up with something like this.

`<div
class="w-16 h-16 rounded text-white bg-black py-1 px-2 m-1 text-sm md:w-32 md:h-32 md:rounded-md md:text-base lg:w-48 lg:h-48 lg:rounded-lg lg:text-lg"

Yikes.

`

for me, it is quite harder than the styled component. in term of readability

from fill-you-in-the-blank.

toey-sup avatar toey-sup commented on September 25, 2024

I think the main benefit of vite plugin ssr is Filesystem Routing and it help with SSR and SSG (which I think can become handy in the future)

I suggest tailwind because I see that in code you use inline style, which I think in terms of readability tailwind win. but yeah compare to the styled component that is the matter of preference, do you want your styling to be separated or not.

but this is just a suggestion, thank for your reply !

from fill-you-in-the-blank.

toey-sup avatar toey-sup commented on September 25, 2024

I use MUI with tailwind before, MUI for components and tailwind for styling

from fill-you-in-the-blank.

nattaaek avatar nattaaek commented on September 25, 2024

actually, I'm okay to use tailwind as a styling too. I also think that sx is not equal to inline style like style={{}}

one of the benefits of this is about sx can access MUI theme. so when we have design system it will be very easy in term of accessing the theme value.

https://stackoverflow.com/questions/71014390/what-is-the-purpose-of-sx-prop-in-material-ui

from fill-you-in-the-blank.

nattaaek avatar nattaaek commented on September 25, 2024

about the vite plugin. don't we do Client-side rendering? because I didn't use NextJS.

from fill-you-in-the-blank.

nattaaek avatar nattaaek commented on September 25, 2024

I'm kind of a bit out of date in front-end technology so I may ask a lot of stupid questions. mainly I use React on a daily work basis and we still use Webpack, not Vite.

from fill-you-in-the-blank.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.