Menu

Reading 0:00
15s threshold

Hi everyone, I’ve been experimenting with TypeScript to see whether it’s possible to build reusable, TypeScript only components, with HTML elements that stand out visually in the code, making the “markup” as easy to scan as HTML or JSX. The main goal is to do this entirely in TypeScript, without introducing a new syntax that requires custom parsers or editor/IDE plugins. The result is elemen-ts. Check out how it's done: Info and examples: https://huberst.github.io/elemen-ts/ GitHub: https://github.com/Huberst/elemen-ts DOM updates are triggered exclusively by reactive adapters, which wrap your signals, RxJS observables or other reactive sources through custom adapters. You can pass these adapters to properties and attributes, use them as text children, or pass them to control structures such as _IF and _EACH to render dynamic content. If this sounds interesting, I’d love for you to give it a try! I’m curious to hear what feels intuitive, what’s confusing, and what could be improved.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.