Commit graph

8 commits

Author SHA1 Message Date
Isiah Meadows
26b8d994ce
Remove m.prop + m.withAttr (#2317)
* Remove `m.prop` + `m.withAttr`

- For many uses, `m.withAttr` is *more* verbose than just directly using
  an event handler
- If you're using it with a bound callback, you're literally wasting a
  single character in the human readable version (and you're *saving*
  them in the minified output).
- It sometimes obscures your intent, if overused.
- Functions are easier to compress than `m.withAttr`, resulting in
  slightly smaller bundles.
- `m.withAttr` is overused anyways.
- `m.prop` is basically useless without `m.withAttr`, and the API
  doesn't have the same benefits it had with 0.2.x.

* Update changelog
2018-11-30 20:41:24 -05:00
Leo Horie
9ea1cf0ae0 make editor and todomvc example more idiomatic 2016-10-28 00:56:59 -04:00
Leo Horie
86fdcdafaa simplify other examples 2016-10-27 20:37:14 -04:00
Leo Horie
7c736b511a rename node to vnode 2016-07-29 22:04:04 -04:00
Leo Horie
a988276e9b Revert "don't copy state anymore"
This reverts commit cece44d4ac.
2016-07-08 10:24:48 -04:00
Leo Horie
cece44d4ac don't copy state anymore 2016-07-08 00:40:52 -04:00
Isiah Meadows
02cc4ec1d6 Fix whitespace/etc. in examples (#1115) 2016-06-18 03:39:55 -04:00
Leo Horie
5ec06e7c08 init state, fix examples 2016-05-15 11:14:38 -04:00