Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Required props working with styled-components

See original GitHub issue

There 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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

landsmancommented, Apr 1, 2020

@mdere-unbound How did you solved this, please?

catamphetaminecommented, Feb 3, 2020

Note: I won’t be fixing this, so the only solution would be someone finding the cause and submitting a pull request.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found