Open jhvanderven opened 6 years ago
I see similar behavior whit Styled components
The following ReactComponent has no generated documentation
/**
* A simple styled button that will change color from blue to red
* @type {function}
* @public
* @reactProps {Boolean} active
* Active state of the button.
* @example
* <Button active>Active Button</Button>
* <Button>Inactive Button</Button>
*/
export const Button = styled.button`
background: ${({active}) => active ? 'red' : 'blue'}
`
Seeing this on a class now too. I guess this feature is in general overly broken. Let's hope the maintainer ever reacts to our issues.
Hi,
I am using esdoc version 1.0.4 for my create-react-app app and I am expericiencing some issues. I guess I am making a beginners fault, but I don't see where.
This is my .esdoc.json:
And I have for instance the following snippet as a Component:
In the output @reactProps is missing. And the showMessage is not recognized as a function, but as a member, which causes my params to be left out of the output.
I have tried to change the order of the plugins, but got the same result. Then I tried to leave some of them out, but that led to the expected parsing errors.
Can someone explain what I am doing wrong?
Thanks
Jan