react-styleguidist compatibility
See original GitHub issue@gweax already mentioned it in #637: It´s pretty hard to document your styled-components with react-styleguidist.
Example:
const H1 = styled.h1`
font-size: 1.5em;
text-align: center;
`;
export default H1
does not export a real react component, that react-styleguidist can display.
instead i always need to do this workaround:
const H1 = styled.h1`
font-size: 1.5em;
text-align: center;
`;
const Headline = props => <H1 {...props} />;
export default Headline;
What is the Problem here? Or is it an issue with react-styleguidist?
Issue Analytics
- State:
- Created 6 years ago
- Comments:32 (10 by maintainers)
Top Results From Across the Web
react-styleguidist - npm
React components style guide generator. Latest version: 13.0.0, last published: 2 months ago. Start using react-styleguidist in your project ...
Read more >Documenting components - React Styleguidist
Styleguidist generates documentation for your components based on the comments in your source code, propTypes declarations, and Readme files.
Read more >Change Styleguides output | Vue Styleguidist
The two syntaxes are not compatible. So even if we use JSX in our Vue components, we will have to change the babel...
Read more >styleguidist/styleguidist - Gitter
I am very new to this world of React and StyleGuidist. ... @sapegin Hi, are you planning to make Styleguidist compatible with Webpack...
Read more >react-docgen-typescript-with-handlers - npm package - Snyk
[![Build Status](https://travis-ci.org/styleguidist/react-docgen- ... Artem Sapegin - fix for compatibility with react-styleguidist v5.
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
Try s/
Card.PropTypes
/Card.propTypes
; I believe static prop types are lowercase.It wasn’t released yet, will be out in 6.1.0 soon.