-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs -> Form -> Props -> Size property - Showing lodash 'without' function #1563
Comments
Would love a PR :) When running the docs, Specifically, ComponentProps.js handles rendering the props table. You'd be looking for the For info setting up and running this project, see the CONTRIBUTING.md. |
Hi @levithomason, thanks for replying... I spent some time having a look at it and I find this: On
Items 1 and 2 are covered on ComponentProps.js in the
But clearly it is not prepared to parse the lodash function. Is that right? I might have missed something. SolutionsSince Eval is dangeours and slow I think we have to come up with another alternative. I did not find anything good enough yet. One solution would be to change how we represent constant arrays(without some item) in the
Any thoughts? |
The simplest way would be to inline the literal values in every array, though, that is a lot of repetition. We use our own custom gulp plugin for parsing the react-docgen output. It would be somewhat safer to |
Steps
Go to Form documentation page. Look at Props table, size property.
Expected Result
Show the all possible sizes.
Actual Result
A lodash function: _.without(...)
Version
0.67.2
I would love to work on this. It seems to affect another pages as well. Can I have a try? Someone can point me to the right direction?
Thanks.
The text was updated successfully, but these errors were encountered: