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

Integrating with Nextjs #373

Open
Meistro77 opened this issue Aug 7, 2024 · 1 comment
Open

Integrating with Nextjs #373

Meistro77 opened this issue Aug 7, 2024 · 1 comment

Comments

@Meistro77
Copy link

Meistro77 commented Aug 7, 2024

Hey Givanz,

Thank you for the time and energy you put into this. I tried every builder out there and yours has the best feel, form, and function. I'd like to integrate it with a nextjs platform written in tsx and wondered how to best go about it. I was debating using Iframe, but I'd like to avoid that if there's a better way. My fear with wrapping it into a react component is that DOM manipulations wouldn't be maintained.

Are you interested in consulting with me?

Thanks again,
Ty

@givanz
Copy link
Owner

givanz commented Aug 21, 2024

Hi

Thank you.

There are many possible issues with using VvvebJs as React component, for example templates https://github.com/givanz/VvvebJs/blob/master/editor.html#L871 use <script> tag that is not supported by jsx and you need to adapt the code to work.

I think that the best approach is to keep them separate and from the React component only hide/show/load the html and initialize the editor https://github.com/givanz/VvvebJs/blob/master/editor.html#L2251-L2261 avoiding jsx and deep React integration.

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