Skip to content

Minimal JSX templating tightly integrated with RxJS

Notifications You must be signed in to change notification settings

old-storyai/jsx-view

Repository files navigation

jsx-view

Features

  • No DOM diffing and no "lifecycle loop". Only Observables which get subscribed to and directly update the DOM elements.
  • Minimal JSX wiring up with full type definitions for all common HTMLElement attributes.
  • Any attribute accepts an Observable of its value, and this is type checked.
  • An Observable of any JSX.Child (string, null, JSX.Element, etc), can be used as a JSX.Child.
  • Adds special props: is, $style, $class, ref, and tags.
  • exports declaration maps (go-to-def goes to TypeScript source code)

Setting up your tsconfig.json

{
  "compilerOptions": {
    "jsx": "react",
    "jsxFactory": "jsxSpec"
  }
}

About

Minimal JSX templating tightly integrated with RxJS

Resources

Stars

Watchers

Forks

Packages

No packages published