dx-platform icon indicating copy to clipboard operation
dx-platform copied to clipboard

Setting defaultProps in React Component should make prop type optional.

Open sutarmin opened this issue 6 years ago • 0 comments

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.

sutarmin avatar Feb 07 '19 17:02 sutarmin