16 ms·
Care to share an example of what you mean? Because I don't understand how that would look honestly.
by manuelmoreale 3y ago
Care to share an example of what you mean? Because I don't understand how that would look honestly.
- c-hendricks 3y agoSee any grid component in a library for React for example.
- manuelmoreale 3y agoAh 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.
- deleted 3y ago[deleted]
- c-hendricks 3y agothe 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 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.