Is there any way to embed JSX like DSL or equivalent in Gleam? #1448
-
Since Gleam now compiles to JavaScript, I would like to write bindings for Preact/React and use some syntactic sugar not necessarily same but like JSX/TSX to write HTML templates. Is there any way to do this in Gleam? Also, can you please share what things do not work well and/or not supported when compiling the code to JavaScript? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hello! There's no XML literal syntax in Gleam, you'd have to use a function based API. One such example can be found here: https://github.com/JohnDoneth/gleam-vdom
What do you mean? |
Beta Was this translation helpful? Give feedback.
Hello!
There's no XML literal syntax in Gleam, you'd have to use a function based API. One such example can be found here: https://github.com/JohnDoneth/gleam-vdom
What do you mean?