Versions in this module Expand all Collapse all v1 v1.0.9 Feb 9, 2020 Changes in this version + var CreateReactClass = js.Global.Get("createReactClass") + var PureComponentMixin = js.Global.Get("PureRenderMixin") + var React = js.Global.Get("React") + var ReactDOM = js.Global.Get("ReactDOM") + func AddClass(currentClasses, newClass string) string + func CloneElement(element interface{}, props interface{}, children ...interface{}) *js.Object + func CreateClass(def ClassDef) *js.Object + func CreateContext(defaultValue ...interface{}) (Context *js.Object, Provider *js.Object, Consumer *js.Object) + func CreateRef() *js.Object + func DangerouslySetInnerHTML(inside interface{}) map[string]interface + func DangerouslySetInnerHTMLFunc(inside func() interface{}) map[string]interface + func ForceUpdate(this *js.Object, callback ...func()) + func ForwardRef(component interface{}) *js.Object + func Fragment(key *string, children ...interface{}) *js.Object + func GetElementByID(id string, dom ...*js.Object) *js.Object + func HydrateProps(this *js.Object, strct interface{}) error + func HydrateState(this *js.Object, strct interface{}) error + func JSFn(funcName string, args ...interface{}) (_ *js.Object, rErr error) + func JSONUnmarshal(json string) (*js.Object, error) + func JSX(component interface{}, props interface{}, children ...interface{}) *js.Object + func M(kvs ...interface{}) map[string]interface + func Profiler(id string, onRender OnRenderCallback, children ...interface{}) *js.Object + func RemoveClass(currentClasses, removeClass string) string + func Render(element *js.Object, domTarget *js.Object, callback ...func()) *js.Object + func SToMap(s interface{}) map[string]interface + func UnmarshalProps(this *js.Object, strct interface{}) error + func UnmarshalState(this *js.Object, strct interface{}) error + func UnmarshalStruct(mp map[string]interface{}, strct interface{}) error + type ClassDef map[string]interface + func (def ClassDef) ComponentDidCatch(...) + func (def ClassDef) ComponentDidMount(f func(this *js.Object, props, state Map, setState SetState)) + func (def ClassDef) ComponentDidUpdate(...) + func (def ClassDef) ComponentWillUnmount(f func(this *js.Object, props, state Map)) + func (def ClassDef) GetDefaultProps(f func(this *js.Object) interface{}) + func (def ClassDef) GetDerivedStateFromError(f func(err *js.Object) interface{}) + func (def ClassDef) GetDerivedStateFromProps(f func(props, state Map) interface{}) + func (def ClassDef) GetInitialState(f func(this *js.Object, props Map) interface{}) + func (def ClassDef) GetSnapshotBeforeUpdate(f func(this *js.Object, prevProps, props, prevState, state Map) interface{}) + func (def ClassDef) Render(f func(this *js.Object, props, state Map) interface{}) + func (def ClassDef) SetEventHandler(name string, ...) + func (def ClassDef) SetMethod(name string, ...) + func (def ClassDef) SetMultiArgEventHandler(name string, ...) + func (def ClassDef) SetPropTypes(propTypes interface{}) + func (def ClassDef) ShouldComponentUpdate(f func(this *js.Object, props, nextProps, state, nextState Map) bool) + func NewClassDef(displayName string, mixins ...interface{}) ClassDef + type Map func(key string) *js.Object + type OnRenderCallback func(id string, phase string, actualDuration, baseDuration float64, ...) + type Set map[string]string + func (s Set) Convert(base string) map[string]string + type SetState func(updater interface{}, callback ...func()) + type SyntheticEvent struct + O *js.Object + func (s *SyntheticEvent) Bubbles() bool + func (s *SyntheticEvent) Cancelable() bool + func (s *SyntheticEvent) CurrentTarget() *js.Object + func (s *SyntheticEvent) DefaultPrevented() bool + func (s *SyntheticEvent) EventPhase() int + func (s *SyntheticEvent) IsDefaultPrevented() bool + func (s *SyntheticEvent) IsPropagationStopped() bool + func (s *SyntheticEvent) IsTrusted() bool + func (s *SyntheticEvent) NativeEvent() *js.Object + func (s *SyntheticEvent) Persist() *SyntheticEvent + func (s *SyntheticEvent) PreventDefault() + func (s *SyntheticEvent) StopPropagation() + func (s *SyntheticEvent) Target() *js.Object + func (s *SyntheticEvent) TimeStamp() float64 + func (s *SyntheticEvent) Type() string + type UpdaterFunc func(props, state Map) interface