Skip to content

0.1.0

Latest
Compare
Choose a tag to compare
@fuzetsu fuzetsu released this 06 Nov 16:40

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