github.com/jgarto/itcv@v0.0.0-20180826224514-4eea09c1aa0d/examples/immtodoapp/gen_Entry_reactGen.go (about)

     1  // Code generated by reactGen. DO NOT EDIT.
     2  
     3  package immtodoapp
     4  
     5  import "myitcv.io/react"
     6  
     7  type EntryElem struct {
     8  	react.Element
     9  }
    10  
    11  func (e *EntryElem) RendersLi(*react.LiElem) {}
    12  
    13  func (e *EntryElem) noop() {
    14  	var v EntryDef
    15  	r := v.Render()
    16  
    17  	v.RendersLi(r)
    18  }
    19  
    20  func buildEntry(cd react.ComponentDef) react.Component {
    21  	return EntryDef{ComponentDef: cd}
    22  }
    23  
    24  func buildEntryElem(props EntryProps, children ...react.Element) *EntryElem {
    25  	return &EntryElem{
    26  		Element: react.CreateElement(buildEntry, props, children...),
    27  	}
    28  }
    29  
    30  func (e EntryDef) RendersElement() react.Element {
    31  	return e.Render()
    32  }
    33  
    34  // IsProps is an auto-generated definition so that EntryProps implements
    35  // the myitcv.io/react.Props interface.
    36  func (e EntryProps) IsProps() {}
    37  
    38  // Props is an auto-generated proxy to the current props of Entry
    39  func (e EntryDef) Props() EntryProps {
    40  	uprops := e.ComponentDef.Props()
    41  	return uprops.(EntryProps)
    42  }
    43  
    44  func (e EntryProps) EqualsIntf(val react.Props) bool {
    45  	return e == val.(EntryProps)
    46  }
    47  
    48  var _ react.Props = EntryProps{}