dx-platform
dx-platform copied to clipboard
Setting defaultProps in React Component should make prop type optional.
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.