Skip to content
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

Setting defaultProps in React Component should make prop type optional. #113

Open
sutarmin opened this issue Feb 7, 2019 · 0 comments
Open

Comments

@sutarmin
Copy link
Contributor

sutarmin commented Feb 7, 2019

Typescript since 3.0 has cool feature: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html#support-for-defaultprops-in-jsx .
It's important feature because it allows us not to use withDefaults HOC.
But this is not working in dx-platform. I think the reason is in our tsconfig.

Need to investigate what exactly is the reason and how can we fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants