You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.
If one tries to use Styled Components feature of Adaptive Props on an extended grid-styled component, React will not be able to determine the prop. The desired effect of the Styled Component's CSS will still be applied however.
Unknown prop `<$primary>` on <div> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
in div (created by Base)
in Base (created by Box)
in Box (created by Flex)
If this example is not clear I can make additions, or if I simply am not writing the additional prop correct, please inform! I believe this issue may be common for others.
The text was updated successfully, but these errors were encountered:
Issue 305 has some examples for how to get around this. Here is an expanded example for anyone looking at this. This will get around the errors that React throws based on not knowing props as mentioned in both of these issues.
If there is a better implementation, which there appears to be based on the abstraction of the components in grid-styled I (and I'm sure others) would love to know how to use it. Unfortunately it is a little hard to follow. Until then, we wait on the updated styled-components to fix this issue.
If one tries to use Styled Components feature of Adaptive Props on an extended grid-styled component, React will not be able to determine the prop. The desired effect of the Styled Component's CSS will still be applied however.
Example:
If this example is not clear I can make additions, or if I simply am not writing the additional prop correct, please inform! I believe this issue may be common for others.
The text was updated successfully, but these errors were encountered: