diff --git a/docs/components.md b/docs/components.md index 0b12f57a..aea46481 100644 --- a/docs/components.md +++ b/docs/components.md @@ -228,7 +228,7 @@ m(BetterHeader, { }) // clearer consumption use case -m(Header, { +m(BetterHeader, { title: [ m("h1", "My title"), m("small", "A small note"), @@ -266,4 +266,4 @@ var Component = { m.render(document.body, m(Component, {greeting: "hello"})) // caling a second time does not modify DOM m.render(document.body, m(Component, {greeting: "hello"})) -``` \ No newline at end of file +```