Replies: 1 comment
-
|
Technically we support both Tagged Template Literals and HyperScript. That library looks a bit like if you use HyperScript with HyperScript Helpers(https://github.com/ohanhi/hyperscript-helpers). That all being said the inevitable part of these non compiled approaches is you can't escape JavaScript semantics so be prepared to write a lot of function wrappers to isolate expressions. Its why you don't see the approach pushed. But we've always supported it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Solid has a concise and expressive syntax for building UIs, but tag functions offer a different developer ergonomics: plain JavaScript functions can be used to return nodes or fragments and compose them — without the need for a compiler or build step.
Sigment demonstrates this approach for building UIs with a minimal runtime. Tag functions can simplify templating inside loops and conditionals as well, and provide an alternative for users who prefer function-based composition over JSX.
Is this something Solid would be able to support?
Beta Was this translation helpful? Give feedback.
All reactions