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