github.com/jgarto/itcv@v0.0.0-20180826224514-4eea09c1aa0d/_talks/2017/golang_uk/bootstrap_init/app.go (about) 1 // AppDef is the definition of the App component 2 // 3 type AppDef struct { // HL 4 react.ComponentDef 5 } 6 7 // App creates instances of the App component 8 // 9 func App() *AppElem { 10 return buildAppElem() 11 } 12 13 // Render renders the App component 14 // 15 func (a AppDef) Render() react.Element { // HL 16 return react.Div(nil, 17 react.H1(nil, react.S("Hello World")), 18 react.P(nil, react.S("This is my first GopherJS React App.")), 19 ) 20 } 21