Closed SrBrahma closed 2 years ago
Added getControl() in 0.50.0. Will remove components in a future version.
Unsure about this.
If we did remove it, we should probably also remove defaultProps/theme, as they may also cause the said "vendor lock-in".
Closing for now.
Certainly is better for separation of concerns and less "vendor lock-in".
What we can have is
<DevComponent {...getControl('id')}
, where it returns the control, idToLabel and future props.It would also allow us to move us a bit from theme'ing.