Merge pull request #1735 from CreaturesInUnitards/patch-1

m.prop() isn't a thing anymore
This commit is contained in:
Pierre-Yves Gérardy 2017-03-23 19:34:06 +01:00 committed by GitHub
commit fda816edba

View file

@ -69,7 +69,7 @@ In contrast, traversing a javascript data structure has a much more predictable
### Differences from m.render
A component rendered via `m.mount` automatically auto-redraws in response to view events, `m.redraw()` calls or `m.request()` calls. Vnodes rendered via `m.render()` do not. Note that calls to `m.prop()` do not trigger auto-redraws.
A component rendered via `m.mount` automatically auto-redraws in response to view events, `m.redraw()` calls or `m.request()` calls. Vnodes rendered via `m.render()` do not.
`m.mount()` is suitable for application developers integrating Mithril widgets into existing codebases where routing is handled by another library or framework, while still enjoying Mithril's auto-redrawing facilities.