Skip to content

Releases: ije/mono-jsx

v0.9.13

20 Mar 01:33
@ije ije

Choose a tag to compare

v0.9.12

17 Mar 02:14
@ije ije

Choose a tag to compare

SSR: Fix formslot element glitch

v0.9.11

16 Mar 03:41
@ije ije

Choose a tag to compare

Fix error handling, catch prop now supports sync function component

v0.9.10

16 Mar 03:40
@ije ije

Choose a tag to compare

CSR: fix a nesting list rendering bug

v0.9.9

16 Mar 03:39
@ije ije

Choose a tag to compare

Update Atom interface to use ChildPrimitiveType as the return type of the map method

v0.9.8

11 Mar 05:35
@ije ije

Choose a tag to compare

Allow jsx element as atom value in CSR mode:

import { atom } from "mono-jsx/dom"

const route = atom<JSX.Element | null>(null)

const matchRoute = () => {
  switch(location.path) {
    case "/":
      route.set(<Home />)
      break
    case "/about":
      route.set(<About />)
      break
    default:
      route.set(<E404 />)
  }
}

window.addEventListener('popstate', matchRoute)
matchRoute()

document.body.mount(<div>{route}</div>)

v0.9.7

09 Mar 06:49
@ije ije

Choose a tag to compare

CSR: fix inline style rendering

v0.9.6

09 Mar 02:35
@ije ije

Choose a tag to compare

Introduce ref method for atom signal:

import { atom } from "mono-jsx/dom"

const width = atom(900)

function App(this: FC) {
  return (
    <div
      style={{ 
        width: width.ref(), // ✅ type safe and reactive
        height: width.ref(w => Math.round(w * 9/16) ) // 🪄 computed height based on `width` atom
      }}
    >...</div>
  )
}

v0.9.5

09 Mar 02:28
@ije ije

Choose a tag to compare

Fix insert order of InsertMark helper.

v0.9.4

06 Mar 04:04
@ije ije

Choose a tag to compare

Fix computed signals with atom getters.