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
I'm using v5 with create-react-app 0.9.5 which does not like one of my stateless functional components that returns null using a ternary based on a prop setting (a pattern that is common with material-ui components.)
Warning: src\MyComponent.js matches a pattern defined in ”components” or “sections” options in your style guide config but doesn’t export a component.
Looks like react-docgen doesn’t support it. It’s hard to detect all possible ways of defining stateless components without false positives (which would be worse — in your case you could just rewrite the component).
I'm using v5 with create-react-app 0.9.5 which does not like one of my stateless functional components that returns null using a ternary based on a prop setting (a pattern that is common with material-ui components.)
An example component looks something like this:
If I change the code to look like this then it works and includes my component:
Not a big deal but a little odd all the same. :)
The text was updated successfully, but these errors were encountered: