github.com/jgarto/itcv@v0.0.0-20180826224514-4eea09c1aa0d/examples/sites/latency/gen_App_reactGen.go (about) 1 // Code generated by reactGen. DO NOT EDIT. 2 3 package main 4 5 import "myitcv.io/react" 6 7 type AppElem struct { 8 react.Element 9 } 10 11 func buildApp(cd react.ComponentDef) react.Component { 12 return AppDef{ComponentDef: cd} 13 } 14 15 func buildAppElem(children ...react.Element) *AppElem { 16 return &AppElem{ 17 Element: react.CreateElement(buildApp, nil, children...), 18 } 19 } 20 21 func (a AppDef) RendersElement() react.Element { 22 return a.Render() 23 }