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

Element HOC #717

Open
alihammad99 opened this issue Dec 27, 2024 · 0 comments
Open

Element HOC #717

alihammad99 opened this issue Dec 27, 2024 · 0 comments

Comments

@alihammad99
Copy link

alihammad99 commented Dec 27, 2024

Hi guys, using the Element component can make spaghetti code.
Imagine if you have 100 HTML templates, and you have to wrap each tag with component so you can use them with Craft.js. I can't even imagine this approach.

So, is there a smart way to automatically convert HTML to Craft.js, like building a higher-order component?
By the way, I'm not a fan of the "not registered in the resolver" error.

I hope you can help
Thanks

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

1 participant