Releases: fuzetsu/microh
Releases · fuzetsu/microh
0.1.0
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
tov2
- preact tests were updated from
v8
tov10
- expanded tests to cover a few more cases for react/preact/hyperapp
0.0.4
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')