Update components.md (#1337)

Fixed typos.
This commit is contained in:
Carl Mungazi 2016-09-24 00:11:28 +01:00 committed by Pat Cavit
parent fd4284f5a2
commit 00adb7ae0e

View file

@ -254,7 +254,7 @@ var ComponentFactory = function(greeting) {
}
}
m.render(document.body, m(ComponentFactory("hello")))
// caling a second time recreates div from scratch rather than doing nothing
// calling a second time recreates div from scratch rather than doing nothing
m.render(document.body, m(ComponentFactory("hello")))
// PREFER
@ -264,6 +264,6 @@ var Component = {
}
}
m.render(document.body, m(Component, {greeting: "hello"}))
// caling a second time does not modify DOM
// calling a second time does not modify DOM
m.render(document.body, m(Component, {greeting: "hello"}))
```