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

Feature Suggestion - Custom wrapper element #38

Closed
tomkelsey opened this issue Nov 4, 2021 · 2 comments
Closed

Feature Suggestion - Custom wrapper element #38

tomkelsey opened this issue Nov 4, 2021 · 2 comments

Comments

@tomkelsey
Copy link

Hi,

Great work with this project 👍

I wondered if it would be possible to include the ability to specify a custom wrapper element?

By default it could be a div (so it isn't a breaking change) but an additional wrapper attribute could be available to allow spans, articles, etc?

@hadeeb
Copy link
Owner

hadeeb commented Nov 13, 2021

You can do that by passing a string to noWrapper prop.

https://github.com/hadeeb/react-lazy-hydration/releases/tag/v0.1.0

@hadeeb hadeeb closed this as completed Nov 13, 2021
@tomkelsey
Copy link
Author

tomkelsey commented Nov 13, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants