-
Notifications
You must be signed in to change notification settings - Fork 66
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
Provide an example using JSX #203
Comments
don't you think it will be too confusing for people to mix a templating language that is primarily used clientside for serverside? |
No, there are a number of projects (e.g. next.js) that use JSX (and React) for server-side rendering. |
Would we use JSX to provide an alternative to HTL? |
we could, yes. but I still think we shouldn't :-) |
In principle, Helix is agnostic to your choice of templating language and JSX has a couple of advantages over HTL:
In order to demonstrate Helix's openness, I think it would well serve it's purpose. |
so far only *html.jsx is supported and no examples or tests are included implements #203
🎉 This issue has been resolved in version 2.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I think we have built-in support for JSX, we just don't know it yet.
(https://github.com/hyperhype/hyperscript has a
React.createElement
-compatible (enough) API and the/** @jsx h */
line instructs Babel to useh
instead ofReact.createElement
)and
All that needs to be done is to create a proper
main
function that accepts the pipeline payload and returns the correct HTML.The text was updated successfully, but these errors were encountered: