Skip to content

Conversation

@asabhaney
Copy link
Member

@asabhaney asabhaney commented Nov 20, 2018

There's 2 good ways to go about this. One is illustrated in this PR, but another alternative is to pass in a custom emotion instance prop, which might actually be better, as we won't have to keep changing the lib code if the create-emotion api ever changes.

// In app code
const emotion = createEmotion({ nonce: 'whatevs' })

return (
   <OIO combineCssFn={emotion.cx} cssInJsFn={emotion.css}>
       <Text>Yay! A little more secure</Text>
   </OIO>
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants