Merge pull request #1329 from jethroscott/patch-3

fix component name
This commit is contained in:
Leo Horie 2016-09-20 13:07:15 -04:00 committed by GitHub
commit de9049ad11

View file

@ -228,7 +228,7 @@ m(BetterHeader, {
}) })
// clearer consumption use case // clearer consumption use case
m(Header, { m(BetterHeader, {
title: [ title: [
m("h1", "My title"), m("h1", "My title"),
m("small", "A small note"), m("small", "A small note"),
@ -266,4 +266,4 @@ var Component = {
m.render(document.body, m(Component, {greeting: "hello"})) m.render(document.body, m(Component, {greeting: "hello"}))
// caling a second time does not modify DOM // caling a second time does not modify DOM
m.render(document.body, m(Component, {greeting: "hello"})) m.render(document.body, m(Component, {greeting: "hello"}))
``` ```