4 ms·
Ha! Long time no see :) I'm no Elm expert, but I would say from what I've seen that mixing-and-matching (JS+Elm, CSS+Elm) as you see fit is totally fine, adopti
by slimsag 5y ago
Ha! Long time no see :) I'm no Elm expert, but I would say from what I've seen that mixing-and-matching (JS+Elm, CSS+Elm) as you see fit is totally fine, adopting Elm can be super incremental.
When it comes to changing CSS dynamically, it's quite nice to have that in Elm code too rather than say a CSS class you toggle.
The thing I'm using here is elm-ui, it takes a more opinionated approach and basically eliminates a lot of the CSS oddities: instead of numerous flex, margin etc. CSS properties you just get simple alignLeft, centerX, etc. attributes in a row/column layout. Quite nice. There's a talk[0] about it.
[0] https://www.youtube.com/watch?v=Ie-gqwSHQr0&t=2s https://www.youtube.com/watch?v=Ie-gqwSHQr0&t=2s