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

     1  // Copyright (c) 2016 Paul Jolly <paul@myitcv.org.uk>, all rights reserved.
     2  // Use of this document is governed by a license found in the LICENSE document.
     3  
     4  package main
     5  
     6  import (
     7  	"myitcv.io/react"
     8  
     9  	"honnef.co/go/js/dom"
    10  )
    11  
    12  //go:generate reactGen
    13  
    14  var document = dom.GetWindow().Document()
    15  
    16  func main() {
    17  	domTarget := document.GetElementByID("app")
    18  
    19  	react.Render(App(), domTarget)
    20  }