From 00adb7ae0e7582a7a39fb2d039c042bbfdf7be7f Mon Sep 17 00:00:00 2001 From: Carl Mungazi Date: Sat, 24 Sep 2016 00:11:28 +0100 Subject: [PATCH] Update components.md (#1337) Fixed typos. --- docs/components.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/components.md b/docs/components.md index aea46481..268fdd40 100644 --- a/docs/components.md +++ b/docs/components.md @@ -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"})) ```