Felix Kling

Results 187 comments of Felix Kling

If this is about to level unions (which I think the original post is): We have talked about this internally, but it's not clear how exactly we would represent this...

There is no error when I paste the code here: http://reactcommunity.org/react-docgen/ .

Similar reason as https://github.com/reactjs/react-docgen/issues/336#issuecomment-474613378

We could check whether a function has `children` or `...props` as destructured parameter. Maybe that helps?

This seems interesting. You could build your own handler (and publish it as an npm module) to enable such behavior. I'm going to think about a bit more this week...

@GrumpyPants, yes, if you look at this example (http://astexplorer.net/#/9vemjTFqdt) and select `babel5` in the recast parser settings, you can see how to comment is attached to the property (it's in...

react-docgen is not meant to run on transpiled code.

Since those are just simple functions, you could likely just use jsdoc to generate documentation for them. Not sure whether this needs to be included in react-docgen itself...

@bruqui > At the very least it would be nice if react-docgen would scrape for prop types regardless of if it's a class or function. `react-docgen` is and has been...

@bruqui, no worries!