Skip to content

Element HOC #717

@alihammad99

Description

@alihammad99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions