Skip to content

Commit 38ee3f3

Browse files
committed
Include renderIntoDOM in Timer example
1 parent 1e011c9 commit 38ee3f3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gh-pages/src/main/scala/ghpages/examples/TimerExample.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ object TimerExample {
4242
|ReactDOM.render(React.createElement(Timer), mountNode);
4343
|""".stripMargin
4444

45-
val source = GhPagesMacros.exampleSource
45+
val source =
46+
s"""
47+
|${GhPagesMacros.exampleSource}
48+
|
49+
|Timer().renderIntoDOM(mountNode)
50+
|""".stripMargin
4651

4752
// EXAMPLE:START
4853

0 commit comments

Comments
 (0)