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

Fragment as the default base component #3

Open
vitaliiznak opened this issue Apr 23, 2019 · 1 comment
Open

Fragment as the default base component #3

vitaliiznak opened this issue Apr 23, 2019 · 1 comment

Comments

@vitaliiznak
Copy link

In most cases Fragment is a better choice as a base component, which allows to not pollute DOM with unneeded divs

@khmelevskii
Copy link
Owner

Thank you @vitaliiznak for this idea. I can't replace default component from div to Fragment because we need to support backward compatibility. But I will add simple way to use use Fragment in Base.
So, I will add the following:

<Base component="<>" ... />

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