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

v2.0.0

Latest
Compare
Choose a tag to compare
@af af released this 21 Sep 18:26
· 16 commits to master since this release

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