Skip to content
This repository was archived by the owner on Aug 27, 2018. It is now read-only.

Commit 80e8535

Browse files
committed
Remove old code from hello message example
1 parent b9398b4 commit 80e8535

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

examples/hellomessage/hello_message.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@ type HelloMessageProps struct {
1818

1919
// HelloMessage creates instances of the HelloMessage component
2020
func HelloMessage(p HelloMessageProps) *HelloMessageElem {
21-
return &HelloMessageElem{
22-
Element: r.CreateElement(buildCmp, p),
23-
}
24-
}
25-
26-
func buildCmp(elem r.ComponentDef) r.Component {
27-
return HelloMessageDef{ComponentDef: elem}
21+
return buildHelloMessageElem(p)
2822
}
2923

3024
// Render renders the HelloMessage component

0 commit comments

Comments
 (0)