github.com/jgarto/itcv@v0.0.0-20180826224514-4eea09c1aa0d/examples/sites/helloworldbootstrap/app.go (about)

     1  // Template generated by reactGen
     2  
     3  package main
     4  
     5  import (
     6  	"myitcv.io/react"
     7  )
     8  
     9  type AppDef struct {
    10  	react.ComponentDef
    11  }
    12  
    13  func App() *AppElem {
    14  	return buildAppElem()
    15  }
    16  
    17  func (a AppDef) Render() react.Element {
    18  	return react.Div(nil,
    19  		react.H1(nil,
    20  			react.S("Hello World"),
    21  		),
    22  		react.P(nil,
    23  			react.S("This is my first GopherJS React App."),
    24  		),
    25  	)
    26  }