Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ah so everything kinda inline? But how do you deal with change of layouts then? Like, sometimes I code sites where the inner structure changes a lot and that's trivial when paired with media queries but it would be a pain to handle if everything is inlined or tied to the markup.


the Grid from Mui / joy UI, for instance, let's you set sizes for different screen witdhs via props: https://mui.com/joy-ui/react-grid/#introduction

Since it's done with JSX/Props, it's API is a 1:1 translation to a new HTML element.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: