menu

emotion

Emotion is a css-in-js library focused on performance and developer experience

Channels
# All channels
view-forward
# General
view-forward
# Development
view-forward
# Help
view-forward
# Off Topic
view-forward
Team

Emotion tools - what styles are passed to this component?

April 4, 2019 at 10:16am

Emotion tools - what styles are passed to this component?

April 4, 2019 at 10:16am
I work with Emotion 9. Once I spot a bug, I either log variables from the problematic function, or I debug, and take a look at values. When working with Emotion's css function and passing a variable, I get a className, which might be difficult to link to the correct source. Is there a way - perhaps Emotion 10 source map's or some other way, to get the actual values of that className? What does Emotion's source map provide beyond React's source map?
No messages yet