From 6ffeeaa19d5590d34082c24706a42e4167cb0a15 Mon Sep 17 00:00:00 2001 From: Deon Tan Date: Fri, 17 Jun 2016 16:13:02 +0100 Subject: [PATCH] Update mithril.md Should component be MyComponent? --- docs/mithril.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/mithril.md b/docs/mithril.md index 1f8025dd..10fa215b 100644 --- a/docs/mithril.md +++ b/docs/mithril.md @@ -481,8 +481,8 @@ var MyComponent = { m.render(document.body, [ //the two lines below are equivalent - m(component, {data: "world"}), - m.component(component, {data: "world"}) + m(MyComponent, {data: "world"}), + m.component(MyComponent, {data: "world"}) ]) ```