Multiple child for media query #1644
Njiallu
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
MediaQuery
component only supports one child.The error generated when using multiple child is somewhat obscure as well.
It's explicitly told in the docs but that would very handy.
It could, for example, apply the styles on every child.
I don't know if there is a technical limitation preventing this
but at least a more explicit error would be awesome.
here is a reproduction of said problem:
https://codesandbox.io/s/stoic-agnesi-d6ui9p?file=/src/App.tsx
Beta Was this translation helpful? Give feedback.
All reactions