You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The most obvious example is permutations of <a>element. At least the styling of links should be governed from the single place, aka UI package. But their props shapes are all over the place and doing conditional rendering in UI package may confuse the bundler and include other frameworks into dependency tree. So UI package has to settle only for wrappers for vanilla elements.
I presume, since framework-specific wrappers have to be declared somewhere, as long as there is only one app with a framework just create those wrappers in the app itself. But then vanilla wrappers from UI package cannot be used because aforementioned components are provided as separate elements. Some sort of component factory which applies classnames to a provided component maybe?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
The most obvious example is permutations of
<a>
element. At least the styling of links should be governed from the single place, aka UI package. But their props shapes are all over the place and doing conditional rendering in UI package may confuse the bundler and include other frameworks into dependency tree. So UI package has to settle only for wrappers for vanilla elements.I presume, since framework-specific wrappers have to be declared somewhere, as long as there is only one app with a framework just create those wrappers in the app itself. But then vanilla wrappers from UI package cannot be used because aforementioned components are provided as separate elements. Some sort of component factory which applies classnames to a provided component maybe?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions