← All projects
Project record1 mention
Originally shared on Hacker News

Observable-of-string custom JSX transform

A custom JSX transform in which every element is an Observable of string. It renders to file for backend static site generation, and on the frontend uses the diffDom library to efficiently update from HTML strings without destroying DOM state. Inline event listeners are disallowed, with event delegation used instead. The author uses it to build their site/blog and wrote a mini self-contained Jira board with it to iron out the interactivity aspects.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Observable-of-string custom JSX transform

    A custom JSX transform in which every element is an Observable of string. It renders to file for backend static site generation, and on the frontend uses the diffDom library to efficiently update from HTML strings without destroying DOM state. Inline event listeners are disallowed, with event delegation used instead. The author uses it to build their site/blog and wrote a mini self-contained Jira board with it to iron out the interactivity aspects.

    Posted by @hafley66 · Original source ↗

    Source text · @hafley66 · · Source ↗

    I got really good at rxjs and saw a way to make a custom jsx transform where every element is an Observable of string. I've been using it to make my site/blog and just got done writing a mini self contained jira board to iron out the interactivity aspects.