Required props working with styled-components
See original GitHub issueThere are some props that aren’t supposed to be required while building the component but if used with styled-components
, it prompts a warning, like metadata
, labels
or countrySelectComponent
.
maybe set them to non-required as they are gonna get a default value anyways?
Thanks for the project, keep it up 😃
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Basics - styled-components
The styled method works perfectly on all of your own or any third-party component, as long as they attach the passed className prop...
Read more >React — Passing props with styled-components - Stack Overflow
I believe what the documentation is saying is that you should avoid including your styles inside of the rendering component: DO THIS
Read more >How To Use Styled-Components In React - Smashing Magazine
Styled components can differentiate between the types of props they receive. They know that type is an HTML attribute, so they actually render ......
Read more >How to use React.js props with styled-components
One of the reasons this can be so handy is that it also allows you to use React.js props that we can pass...
Read more >8 awesome features of styled-components - LogRocket Blog
Props can be passed to styled components just as they are with regular React components (class or functional). This is possible because styled ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mdere-unbound How did you solved this, please?
Note: I won’t be fixing this, so the only solution would be someone finding the cause and submitting a pull request.