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

Is there a list of similar alternatives? #18

Closed
mrpeu opened this issue Nov 22, 2018 · 4 comments
Closed

Is there a list of similar alternatives? #18

mrpeu opened this issue Nov 22, 2018 · 4 comments

Comments

@mrpeu
Copy link

mrpeu commented Nov 22, 2018

I think https://github.com/choojs/nanohtml is quite similar. I bet there are tons. It would be nice to see the different variations.

@marvinhagemeister
Copy link
Collaborator

They both use template tags but generate different output formats. htm converts the input to virtual dom nodes for preact, react or any other virtual dom based framework. It's basically an alternative to JSX.

nanohtml on the other hand doesn't return vnodes, but strings instead, making it impossible to use with a virtual dom based library.

@developit
Copy link
Owner

Well said @marvinhagemeister. I think it might actually be worth adding a readme section explaining more clearly how htm is different than other solutions.

It's most similar to hyperx and t7, just taking a different approach by using the browsers parser and adding a bunch of JSX familiarities to the syntax.

@mrpeu
Copy link
Author

mrpeu commented Nov 22, 2018

Ok, thank you. I'll dig more into the subject.

@marvinhagemeister nanohtml seems to be outputting DOM elements on browsers and String otherwise.

@mrpeu mrpeu closed this as completed Nov 22, 2018
@magic-akari
Copy link

https://github.com/mmis1000/litJSX
https://github.com/magic-akari/lit-jsx

But they are prototype.
JSX Specification said why-not-template-literals

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

4 participants