Skip to content

Releases: fuzetsu/microh

0.1.0

06 Nov 16:40
Compare
Choose a tag to compare

After this update microh will spread children into the provided h function, instead of just passing the children array.

// this
const h = (tag, props, ...children) => null
// instead of the old way
const h = (tag, props, children) => null

This was done because React expects all vnodes within a nested array to be keyed.

Other changes:

  • hyperapp tests were updated from v1 to v2
  • preact tests were updated from v8 to v10
  • expanded tests to cover a few more cases for react/preact/hyperapp

0.0.4

06 Sep 03:01
Compare
Choose a tag to compare

Reverted simplified vnode detection. Turns out it wasn't the best idea.

Since react uses type, a fairly common key m('input', { type: 'number' }) was being interpreted as an <input> element with a <number> vnode inside of it.

Added parameter to configure what key microh will look for the className in, default is className.

This was done since some libraries accept class, allowing the developer to use what they prefer.

const m = microh(preact.h, 'class')