Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bep/gr
/ types & classes
Types & classes
66 in github.com/bep/gr
⨍
Functions
1,359
◇
Types & classes
66
↓ 1 callers
TypeAlias
cssClasses
modifiers.go:44
Interface
ChildContextProvider
ChildContextProvider provides the context for the children. The GetChildContext function will be called when the state or props changes. In order to
lifecycle.go:66
Struct
Children
Children represents a component's child component(s). This is a fairly complex topic in Facebook's React, and more support may arrive here, eventually
this.go:208
Struct
ClickCounter
ClickCounter is a reusable components to use in composition examples. This is just copy-paste from the click counter example. Consider making somethin
examples/helpers.go:80
Interface
Component
A Component represents a React JS component. http://facebook.github.io/react/docs/glossary.html#react-nodes for a reference. A Component can be eith
component.go:55
Struct
ComponentConfig
ComponentConfig is used to add optional static configuration to a component.
component.go:124
Interface
ComponentDidMount
ComponentDidMount gets invoked once, only on the client (not on the server), immediately after the initial rendering occurs.
lifecycle.go:106
Interface
ComponentDidUpdate
ComponentDidUpdate gets invoked immediately after the component's updates are flushed to the DOM. This method is not called for the initial render.
lifecycle.go:90
Interface
ComponentWillMount
ComponentWillMount get invoked once, both on the client and server, immediately before the initial rendering occurs.
lifecycle.go:95
Interface
ComponentWillReceiveProps
ComponentWillReceiveProps gets invoked when a component is receiving new props. This method is not called for the initial render.
lifecycle.go:84
Interface
ComponentWillUnmount
ComponentWillUnmount gets invoked immediately before a component is unmounted from the DOM.
lifecycle.go:100
Interface
ComponentWillUpdate
ComponentWillUpdate gets invoked immediately before rendering when new props or state are being received. This is not called for the initial render.
lifecycle.go:78
TypeAlias
Context
Context holds the React context.
this.go:138
Struct
Cops
Cops holds COntext, Props and State received in the lifecycle methods. Note that any of these can be nil, depending on the context.
lifecycle.go:39
Struct
Element
Element represents a builder for a ReactElement. An Element can be a simple text node or a HTML element with children, attributes etc.
element.go:39
Struct
Event
Event represents a browser event. See https://developer.mozilla.org/en-US/docs/Web/Events
event.go:24
Struct
Event
evt/generate.go:35
Struct
EventListener
An EventListener can be attached to a HTML element to listen for events, mouse clicks etc.
event.go:56
Interface
Factory
A Factory is a Component that can construct Elements (analogous to a ReactClass or a ReactFactory).
component.go:60
Struct
HostInfo
HostInfo represents the location info from the browser window. TODO(bep) get rid of all below.
helpers.go:104
Interface
Lifecycler
Lifecycle interfaces See http://facebook.github.io/react/docs/component-specs.html#lifecycle-methods Lifecycler contains all the lifecycle callback i
lifecycle.go:24
FuncType
Listener
Listener is the signature for the func that needs to be implemented by the listener, e.g. the clickHandler etc.
event.go:80
Struct
Matcher
Matcher used to find a component in the component tree.
tests/grt/test_helpers.go:91
Interface
Modifier
A Modifier modifies an element, adding attributes, style or child elements etc.
element.go:24
TypeAlias
Modifiers
Modifiers is used to Modify a list of elements (children).
element.go:85
Struct
Option
Option is used to configure a component.
component.go:129
TypeAlias
Props
Props holds the React properties.
this.go:141
Struct
ReactComponent
ReactComponent wraps a Facebook React component. This component can either be constructed from a Go implementation (see New) or loaded from JavaScript
component.go:68
TypeAlias
Refs
Refs holds a reference to component references. See https://facebook.github.io/react/docs/more-about-refs.html
this.go:148
Struct
RenderedTree
RenderedTree represents a shallow render.
tests/grt/test_helpers.go:72
Interface
Renderer
Renderer is the core interface used to render a Element.
lifecycle.go:46
Interface
ShouldComponentUpdate
ShouldComponentUpdate gets invoked before rendering when new props or state are being received. This is not called for the initial render or when forc
lifecycle.go:72
TypeAlias
State
State holds the React state.
this.go:144
Interface
StateInitializer
StateInitializer sets up the initial state.
lifecycle.go:51
Struct
This
This is named for what it represents: The this context representation from the JavaScript side of the fence.
this.go:29
Interface
ThisSetter
ThisSetter must be implemented by a component if JavaScript's this is needed. The simplest way of doing this is to just embed a This on the component
this.go:40
Struct
app
examples/router/main.go:38
Struct
clickCounter
examples/basic-click-counter/main.go:23
Struct
clickCounter
examples/router/main.go:67
Struct
delegateRenderer
component.go:220
TypeAlias
discard
modifiers.go:100
TypeAlias
dynamicModifier
modifiers.go:124
Struct
elapser
examples/composition/main.go:27
Struct
elapser
examples/interop/main.go:32
Struct
elapser
examples/basic/main.go:27
FuncType
elementFactory
func(e *Element) *js.Object
element.go:28
Struct
gist
examples/ajax/main.go:24
Struct
incrementer
component.go:570
Struct
lifecycle
examples/lifecycle/main.go:44
Struct
mouseTracker
examples/debounce/main.go:21
Struct
prop
modifiers.go:64
Struct
reactClass
component.go:199
Struct
simpleRenderer
component.go:183
Struct
style
modifiers.go:95
Struct
testChildWithContext
tests/component_test.go:318
Struct
testClickableButtons
tests/this_test.go:157
Struct
testCompositeComponent
tests/component_test.go:274
Struct
testCustomComponent
tests/component_test.go:266
Struct
testLifecycler
tests/component_test.go:329
Struct
testParentWithContext
tests/component_test.go:304
Struct
testTwoButtons
tests/component_test.go:422
Struct
textEl
modifiers.go:24
Struct
thisCompChildren
tests/this_test.go:149
Struct
thisCompEmbed
tests/this_test.go:123
Struct
thisCompNamed
tests/this_test.go:140
Struct
userGists
examples/ajax/main.go:32