Replies: 2 comments
-
|
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.
-
|
Thanks, Ryan β that makes sense. I was not aware of that library π I (sort of) understand the trade-offs of nonβcompiled approaches, including the need for extra wrapper functions to isolate expressions. I will prototype a small workflow using that library to evaluate the overall experience and runtime cost. |
Beta Was this translation helpful? Give feedback.
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