Index | Files

package todoapp

import ""


Package Files

gen_TodoApp_reactGen.go todo_app.go

type TodoAppDef Uses

type TodoAppDef struct {

TodoAppDef is the definition fo the TodoApp component

func (TodoAppDef) GetInitialStateIntf Uses

func (t TodoAppDef) GetInitialStateIntf() react.State

GetInitialStateIntf is an auto-generated proxy to GetInitialState

func (TodoAppDef) Render Uses

func (t TodoAppDef) Render() react.Element

Render renders the TodoApp component

func (TodoAppDef) RendersElement Uses

func (t TodoAppDef) RendersElement() react.Element

func (TodoAppDef) SetState Uses

func (t TodoAppDef) SetState(state TodoAppState)

SetState is an auto-generated proxy proxy to update the state for the TodoApp component. SetState does not immediately mutate t.State() but creates a pending state transition.

func (TodoAppDef) State Uses

func (t TodoAppDef) State() TodoAppState

State is an auto-generated proxy to return the current state in use for the render of the TodoApp component

type TodoAppElem Uses

type TodoAppElem struct {

func TodoApp Uses

func TodoApp() *TodoAppElem

TodoApp creates instances of the TodoApp component

type TodoAppState Uses

type TodoAppState struct {
    // contains filtered or unexported fields

TodoAppState is the state type for the TodoApp component

func (TodoAppState) Equals Uses

func (c TodoAppState) Equals(v TodoAppState) bool

Equals must be defined because struct val instances of TodoAppState cannot be compared. It is generally bad practice to have mutable values in state in this way; seeks to help address this problem. See for an example

func (TodoAppState) EqualsIntf Uses

func (t TodoAppState) EqualsIntf(val react.State) bool

func (TodoAppState) IsState Uses

func (t TodoAppState) IsState()

IsState is an auto-generated definition so that TodoAppState implements the interface.

Package todoapp imports 3 packages (graph) and is imported by 3 packages. Updated 2019-08-07. Refresh now. Tools for package owners.