Does IDOM support CSS modules? #478
Answered
by
rmorshea
Archmonger
asked this question in
Question
-
I was reading up about React and was wondering if IDOM has an integrated way of implementing CSS modules. |
Beta Was this translation helpful? Give feedback.
Answered by
rmorshea
Aug 26, 2021
Replies: 2 comments 5 replies
-
You can add style to elements in two ways:
# style element (write a CSS string)
html.style(".some-css {...}")
# define style the same as React with a camelCased dict
html.div({"style": {"backgroundColor": "red"}) |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
Archmonger
-
I don't think it's technologically possible for IDOM to have scoped CSS, such as with The only viable solution is inline styles, as mentioned above |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add style to elements in two ways:
style
tag elementstyle
prop (as in React)