Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Releases: af/JSnoX

v2.0.0

21 Sep 18:26
@af af
Compare
Choose a tag to compare

New/changed in v2:

  • Support the call signature of React.createElement() where you can have a variable number of ReactElement arguments at the end of the args list. So now you can do:
d('div.container',
    d('div.inner', 'hi'),
    d('div.inner', 'hi again'),
)

instead of:

d('div.container', [
    d('div.inner', 'hi'),
    d('div.inner', 'hi again'),
])

Note that you can still pass an array as before, so your old code will still work.

  • No key autogenerating shenanigans (see #9) unless you opt-in via a trailing ^ in your specString