Skip to content

What's the recommended way to define a shared piece of CSS? #2527

Answered by Andarist
srmagura asked this question in Q&A
Discussion options

You must be logged in to vote

The second one is "targeted" by our css helper - this means that we can statically figure out that this particular object is actually meant to be a style and thus we can apply some, minor, optimizations to it. We can also give this a label, source maps, and stuff like that. Note that this sort of thing requires using our Babel plugin.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Andarist
Comment options

@srmagura
Comment options

srmagura Oct 27, 2021
Collaborator Author

Answer selected by srmagura
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants