This repository has been archived by the owner on Aug 13, 2020. It is now read-only.
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