Passing css function into component inside of a Context Provider #2234
Unanswered
dungle-scrubs
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can also do this: const THUMBNAILS_WRAPPER = css`
width: 100%;
padding: .5rem;
` We could accept strings but by enforcing |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to pass css into a child of a HoC but get the error:
My CSS looks like this:
And my JSX looks like this:
And my context looks like this:
However, it will work if I pass the css function directly into the child like this:
Why is that? And is there a way I can do it the way I'm attempting? I try not to mix my styles into my markup if I can avoid it.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions