react: myitcv.io/react Index | Files | Directories

package react

import "myitcv.io/react"

Package react is a set of GopherJS bindings for Facebook's React, a Javascript library for building user interfaces.

For more information see https://github.com/myitcv/react/wiki

Index

Package Files

core.go custom_elements.go gen_react_coreGen.go gen_react_cssGen.go react.go unsafe.go

type AElem Uses

type AElem struct {
    Element
}

AElem is the React element definition corresponding to the HTML <a> element

func A Uses

func A(props *AProps, children ...Element) *AElem

A creates a new instance of a <a> element with the provided props and children

type AProps Uses

type AProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    Href                    string
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
    Target                  string
    Title                   string
}

AProps defines the properties for the <a> element

type AbbrElem Uses

type AbbrElem struct {
    Element
}

AbbrElem is the React element definition corresponding to the HTML <abbr> element

func Abbr Uses

func Abbr(props *AbbrProps, children ...Element) *AbbrElem

Abbr creates a new instance of a <abbr> element with the provided props and children

type AbbrProps Uses

type AbbrProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

AbbrProps defines the properties for the <abbr> element

type AriaSet Uses

type AriaSet map[string]string

type ArticleElem Uses

type ArticleElem struct {
    Element
}

ArticleElem is the React element definition corresponding to the HTML <article> element

func Article Uses

func Article(props *ArticleProps, children ...Element) *ArticleElem

Article creates a new instance of a <article> element with the provided props and children

type ArticleProps Uses

type ArticleProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

ArticleProps defines the properties for the <article> element

type AsideElem Uses

type AsideElem struct {
    Element
}

AsideElem is the React element definition corresponding to the HTML <aside> element

func Aside Uses

func Aside(props *AsideProps, children ...Element) *AsideElem

Aside creates a new instance of a <aside> element with the provided props and children

type AsideProps Uses

type AsideProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

AsideProps defines the properties for the <aside> element

type BElem Uses

type BElem struct {
    Element
}

BElem is the React element definition corresponding to the HTML <b> element

func B Uses

func B(props *BProps, children ...Element) *BElem

B creates a new instance of a <b> element with the provided props and children

type BProps Uses

type BProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

BProps defines the properties for the <b> element

type BrElem Uses

type BrElem struct {
    Element
}

BrElem is the React element definition corresponding to the HTML <br> element

func Br Uses

func Br(props *BrProps, children ...Element) *BrElem

Br creates a new instance of a <br> element with the provided props and children

type BrProps Uses

type BrProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

BrProps defines the properties for the <br> element

type ButtonElem Uses

type ButtonElem struct {
    Element
}

ButtonElem is the React element definition corresponding to the HTML <button> element

func Button Uses

func Button(props *ButtonProps, children ...Element) *ButtonElem

Button creates a new instance of a <button> element with the provided props and children

type ButtonProps Uses

type ButtonProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
    Type                    string
}

ButtonProps defines the properties for the <button> element

type CSS Uses

type CSS struct {
    Float     string
    FontSize  string
    FontStyle string
    Height    string
    Left      string
    MarginTop string
    MaxHeight string
    MinHeight string
    Overflow  string
    OverflowY string
    Position  string
    Resize    string
    Top       string
    Width     string
    ZIndex    string
    // contains filtered or unexported fields
}

CSS defines CSS attributes for HTML components. Largely based on https://developer.mozilla.org/en-US/docs/Web/CSS/Reference

type CaptionElem Uses

type CaptionElem struct {
    Element
}

CaptionElem is the React element definition corresponding to the HTML <caption> element

func Caption Uses

func Caption(props *CaptionProps, children ...Element) *CaptionElem

Caption creates a new instance of a <caption> element with the provided props and children

type CaptionProps Uses

type CaptionProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

CaptionProps defines the properties for the <caption> element

type CodeElem Uses

type CodeElem struct {
    Element
}

CodeElem is the React element definition corresponding to the HTML <code> element

func Code Uses

func Code(props *CodeProps, children ...Element) *CodeElem

Code creates a new instance of a <code> element with the provided props and children

type CodeProps Uses

type CodeProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

CodeProps defines the properties for the <code> element

type Component Uses

type Component interface {
    RendersElement() Element
}

type ComponentBuilder Uses

type ComponentBuilder func(elem ComponentDef) Component

type ComponentDef Uses

type ComponentDef struct {
    // contains filtered or unexported fields
}

ComponentDef is embedded in a type definition to indicate the type is a component

func (ComponentDef) Children Uses

func (c ComponentDef) Children() []Element

func (ComponentDef) ForceUpdate Uses

func (c ComponentDef) ForceUpdate()

func (ComponentDef) Props Uses

func (c ComponentDef) Props() Props

func (ComponentDef) SetState Uses

func (c ComponentDef) SetState(i State)

func (ComponentDef) State Uses

func (c ComponentDef) State() State

type DangerousInnerHTML Uses

type DangerousInnerHTML struct {
    // contains filtered or unexported fields
}

DangerousInnerHTML is convenience definition that allows HTML to be directly set as the child of a DOM element. See https://facebook.github.io/react/docs/dom-elements.html#dangerouslysetinnerhtml for more details

func NewDangerousInnerHTML Uses

func NewDangerousInnerHTML(s string) *DangerousInnerHTML

NewDangerousInnerHTML creates a new DangerousInnerHTML instance, using the supplied string as the raw HTML

type DataSet Uses

type DataSet map[string]string

type DivElem Uses

type DivElem struct {
    Element
}

DivElem is the React element definition corresponding to the HTML <div> element

func Div Uses

func Div(props *DivProps, children ...Element) *DivElem

Div creates a new instance of a <div> element with the provided props and children

type DivProps Uses

type DivProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

DivProps defines the properties for the <div> element

type Element Uses

type Element = core.Element

func CreateElement Uses

func CreateElement(buildCmp ComponentBuilder, newprops Props, children ...Element) Element

func Render Uses

func Render(el Element, container dom.Element) Element

type EmElem Uses

type EmElem struct {
    Element
}

EmElem is the React element definition corresponding to the HTML <em> element

func Em Uses

func Em(props *EmProps, children ...Element) *EmElem

Em creates a new instance of a <em> element with the provided props and children

type EmProps Uses

type EmProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

EmProps defines the properties for the <em> element

type Event Uses

type Event interface{}

type FooterElem Uses

type FooterElem struct {
    Element
}

FooterElem is the React element definition corresponding to the HTML <footer> element

func Footer(props *FooterProps, children ...Element) *FooterElem

Footer creates a new instance of a <footer> element with the provided props and children

type FooterProps Uses

type FooterProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

FooterProps defines the properties for the <footer> element

type FormElem Uses

type FormElem struct {
    Element
}

FormElem is the React element definition corresponding to the HTML <form> element

func Form Uses

func Form(props *FormProps, children ...Element) *FormElem

Form creates a new instance of a <form> element with the provided props and children

type FormProps Uses

type FormProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

FormProps defines the properties for the <form> element

type FragmentElem Uses

type FragmentElem struct {
    Element
}

FragmentElem is the special React Fragment element definition. Fragments let you group a list of children without adding extra nodes to the DOM. See https://reactjs.org/docs/fragments.html for more details.

func Fragment Uses

func Fragment(children ...Element) *FragmentElem

Fragment creates a new instance of a <React.Fragment> element with the provided children

type H1Elem Uses

type H1Elem struct {
    Element
}

H1Elem is the React element definition corresponding to the HTML <h1> element

func H1 Uses

func H1(props *H1Props, children ...Element) *H1Elem

H1 creates a new instance of a <h1> element with the provided props and children

type H1Props Uses

type H1Props struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

H1Props defines the properties for the <h1> element

type H2Elem Uses

type H2Elem struct {
    Element
}

H2Elem is the React element definition corresponding to the HTML <h2> element

func H2 Uses

func H2(props *H2Props, children ...Element) *H2Elem

H2 creates a new instance of a <h2> element with the provided props and children

type H2Props Uses

type H2Props struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

H2Props defines the properties for the <h2> element

type H3Elem Uses

type H3Elem struct {
    Element
}

H3Elem is the React element definition corresponding to the HTML <h3> element

func H3 Uses

func H3(props *H3Props, children ...Element) *H3Elem

H3 creates a new instance of a <h3> element with the provided props and children

type H3Props Uses

type H3Props struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

H3Props defines the properties for the <h3> element

type H4Elem Uses

type H4Elem struct {
    Element
}

H4Elem is the React element definition corresponding to the HTML <h4> element

func H4 Uses

func H4(props *H4Props, children ...Element) *H4Elem

H4 creates a new instance of a <h4> element with the provided props and children

type H4Props Uses

type H4Props struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

H4Props defines the properties for the <h4> element

type H5Elem Uses

type H5Elem struct {
    Element
}

H5Elem is the React element definition corresponding to the HTML <h5> element

func H5 Uses

func H5(props *H5Props, children ...Element) *H5Elem

H5 creates a new instance of a <h5> element with the provided props and children

type H5Props Uses

type H5Props struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

H5Props defines the properties for the <h5> element

type H6Elem Uses

type H6Elem struct {
    Element
}

H6Elem is the React element definition corresponding to the HTML <h6> element

func H6 Uses

func H6(props *H6Props, children ...Element) *H6Elem

H6 creates a new instance of a <h6> element with the provided props and children

type H6Props Uses

type H6Props struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

H6Props defines the properties for the <h6> element

type HeaderElem Uses

type HeaderElem struct {
    Element
}

HeaderElem is the React element definition corresponding to the HTML <header> element

func Header(props *HeaderProps, children ...Element) *HeaderElem

Header creates a new instance of a <header> element with the provided props and children

type HeaderProps Uses

type HeaderProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

HeaderProps defines the properties for the <header> element

type HrElem Uses

type HrElem struct {
    Element
}

HrElem is the React element definition corresponding to the HTML <hr> element

func Hr Uses

func Hr(props *HrProps) *HrElem

Hr creates a new instance of a <hr> element with the provided props and children

type HrProps Uses

type HrProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

HrProps defines the properties for the <hr> element

type IElem Uses

type IElem struct {
    Element
}

IElem is the React element definition corresponding to the HTML <i> element

func I Uses

func I(props *IProps, children ...Element) *IElem

I creates a new instance of a <i> element with the provided props and children

type IFrameElem Uses

type IFrameElem struct {
    Element
}

IFrameElem is the React element definition corresponding to the HTML <iframe> element

func IFrame Uses

func IFrame(props *IFrameProps, children ...Element) *IFrameElem

IFrame creates a new instance of a <iframe> element with the provided props and children

type IFrameProps Uses

type IFrameProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    SrcDoc                  string
    Style                   *CSS
}

IFrameProps defines the properties for the <iframe> element

type IProps Uses

type IProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

IProps defines the properties for the <i> element

type ImgElem Uses

type ImgElem struct {
    Element
}

ImgElem is the React element definition corresponding to the HTML <img> element

func Img Uses

func Img(props *ImgProps, children ...Element) *ImgElem

Img creates a new instance of a <img> element with the provided props and children

type ImgProps Uses

type ImgProps struct {
    Alt                     string
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Src                     string
    Style                   *CSS
}

ImgProps defines the properties for the <img> element

type InputElem Uses

type InputElem struct {
    Element
}

InputElem is the React element definition corresponding to the HTML <input> element

func Input Uses

func Input(props *InputProps, children ...Element) *InputElem

Input creates a new instance of a <input> element with the provided props and children

type InputProps Uses

type InputProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Placeholder             string
    Ref                     Ref
    Role                    string
    Style                   *CSS
    Type                    string
    Value                   string
}

InputProps defines the properties for the <input> element

type LabelElem Uses

type LabelElem struct {
    Element
}

LabelElem is the React element definition corresponding to the HTML <label> element

func Label Uses

func Label(props *LabelProps, children ...Element) *LabelElem

Label creates a new instance of a <label> element with the provided props and children

type LabelProps Uses

type LabelProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    For                     string
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

LabelProps defines the properties for the <label> element

type LiElem Uses

type LiElem struct {
    Element
}

LiElem is the React element definition corresponding to the HTML <li> element

func Li Uses

func Li(props *LiProps, children ...Element) *LiElem

Li creates a new instance of a <li> element with the provided props and children

func (*LiElem) RendersLi Uses

func (l *LiElem) RendersLi(*LiElem)

type LiProps Uses

type LiProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

LiProps defines the properties for the <li> element

type MainElem Uses

type MainElem struct {
    Element
}

MainElem is the React element definition corresponding to the HTML <main> element

func Main Uses

func Main(props *MainProps, children ...Element) *MainElem

Main creates a new instance of a <main> element with the provided props and children

type MainProps Uses

type MainProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

MainProps defines the properties for the <main> element

type NavElem struct {
    Element
}

NavElem is the React element definition corresponding to the HTML <nav> element

func Nav(props *NavProps, children ...Element) *NavElem

Nav creates a new instance of a <nav> element with the provided props and children

type NavProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

NavProps defines the properties for the <nav> element

type OnChange Uses

type OnChange interface {
    Event

    OnChange(e *SyntheticEvent)
}

type OnClick Uses

type OnClick interface {
    Event

    OnClick(e *SyntheticMouseEvent)
}

type OptionElem Uses

type OptionElem struct {
    Element
}

OptionElem is the React element definition corresponding to the HTML <option> element

func Option Uses

func Option(props *OptionProps, children ...Element) *OptionElem

Option creates a new instance of a <option> element with the provided props and children

type OptionProps Uses

type OptionProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
    Value                   string
}

OptionProps defines the properties for the <option> element

type PElem Uses

type PElem struct {
    Element
}

PElem is the React element definition corresponding to the HTML <p> element

func P Uses

func P(props *PProps, children ...Element) *PElem

P creates a new instance of a <p> element with the provided props and children

type PProps Uses

type PProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

PProps defines the properties for the <p> element

type PreElem Uses

type PreElem struct {
    Element
}

PreElem is the React element definition corresponding to the HTML <pre> element

func Pre Uses

func Pre(props *PreProps, children ...Element) *PreElem

Pre creates a new instance of a <pre> element with the provided props and children

type PreProps Uses

type PreProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

PreProps defines the properties for the <pre> element

type Props Uses

type Props interface {
    IsProps()
    EqualsIntf(v Props) bool
}

type Ref Uses

type Ref interface {
    Ref(h *js.Object)
}

type RendersLi Uses

type RendersLi interface {
    Element
    RendersLi(*LiElem)
}

type S Uses

type S = core.S

S is the React representation of a string

func Sprintf Uses

func Sprintf(format string, args ...interface{}) S

type SelectElem Uses

type SelectElem struct {
    Element
}

SelectElem is the React element definition corresponding to the HTML <select> element

func Select Uses

func Select(props *SelectProps, children ...*OptionElem) *SelectElem

Select creates a new instance of a <select> element with the provided props and children

type SelectProps Uses

type SelectProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
    Value                   string
}

SelectProps defines the properties for the <select> element

type SpanElem Uses

type SpanElem struct {
    Element
}

SpanElem is the React element definition corresponding to the HTML <span> element

func Span Uses

func Span(props *SpanProps, children ...Element) *SpanElem

Span creates a new instance of a <span> element with the provided props and children

type SpanProps Uses

type SpanProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

SpanProps defines the properties for the <span> element

type State Uses

type State interface {
    IsState()
    EqualsIntf(v State) bool
}

type StrikeElem Uses

type StrikeElem struct {
    Element
}

StrikeElem is the React element definition corresponding to the HTML <s> element

func Strike Uses

func Strike(props *StrikeProps, children ...Element) *StrikeElem

Strike creates a new instance of a <s> element with the provided props and children

type StrikeProps Uses

type StrikeProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

StrikeProps defines the properties for the <s> element

type SupElem Uses

type SupElem struct {
    Element
}

SupElem is the React element definition corresponding to the HTML <sup> element

func Sup Uses

func Sup(props *SupProps, children ...Element) *SupElem

Sup creates a new instance of a <sup> element with the provided props and children

type SupProps Uses

type SupProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

SupProps defines the properties for the <sup> element

type SyntheticEvent Uses

type SyntheticEvent struct {
    PreventDefault  func() `js:"preventDefault"`
    StopPropagation func() `js:"stopPropagation"`
    // contains filtered or unexported fields
}

func (*SyntheticEvent) Target Uses

func (s *SyntheticEvent) Target() dom.HTMLElement

type SyntheticMouseEvent Uses

type SyntheticMouseEvent struct {
    *SyntheticEvent

    ClientX int `js:"clientX"`
}

type TableElem Uses

type TableElem struct {
    Element
}

TableElem is the React element definition corresponding to the HTML <table> element

func Table Uses

func Table(props *TableProps, children ...Element) *TableElem

Table creates a new instance of a <table> element with the provided props and children

type TableProps Uses

type TableProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

TableProps defines the properties for the <table> element

type TbodyElem Uses

type TbodyElem struct {
    Element
}

TbodyElem is the React element definition corresponding to the HTML <tbody> element

func Tbody Uses

func Tbody(props *TbodyProps, children ...Element) *TbodyElem

Tbody creates a new instance of a <tbody> element with the provided props and children

type TbodyProps Uses

type TbodyProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

TbodyProps defines the properties for the <tbody> element

type TdElem Uses

type TdElem struct {
    Element
}

TdElem is the React element definition corresponding to the HTML <td> element

func Td Uses

func Td(props *TdProps, children ...Element) *TdElem

Td creates a new instance of a <td> element with the provided props and children

type TdProps Uses

type TdProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

TdProps defines the properties for the <td> element

type TextAreaElem Uses

type TextAreaElem struct {
    Element
}

TextAreaElem is the React element definition corresponding to the HTML <textarea> element

func TextArea Uses

func TextArea(props *TextAreaProps, children ...Element) *TextAreaElem

TextArea creates a new instance of a <textarea> element with the provided props and children

type TextAreaProps Uses

type TextAreaProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Placeholder             string
    Ref                     Ref
    Role                    string
    Style                   *CSS
    Value                   string
}

TextAreaProps defines the properties for the <textarea> element

type ThElem Uses

type ThElem struct {
    Element
}

ThElem is the React element definition corresponding to the HTML <th> element

func Th Uses

func Th(props *ThProps, children ...Element) *ThElem

Th creates a new instance of a <th> element with the provided props and children

type ThProps Uses

type ThProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

ThProps defines the properties for the <th> element

type TheadElem Uses

type TheadElem struct {
    Element
}

TheadElem is the React element definition corresponding to the HTML <thead> element

func Thead Uses

func Thead(props *TheadProps, children ...Element) *TheadElem

Thead creates a new instance of a <thead> element with the provided props and children

type TheadProps Uses

type TheadProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

TheadProps defines the properties for the <thead> element

type TrElem Uses

type TrElem struct {
    Element
}

TrElem is the React element definition corresponding to the HTML <tr> element

func Tr Uses

func Tr(props *TrProps, children ...Element) *TrElem

Tr creates a new instance of a <tr> element with the provided props and children

type TrProps Uses

type TrProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

TrProps defines the properties for the <tr> element

type UlElem Uses

type UlElem struct {
    Element
}

UlElem is the React element definition corresponding to the HTML <ul> element

func Ul Uses

func Ul(props *UlProps, children ...RendersLi) *UlElem

Ul creates a new instance of a <ul> element with the provided props and children

type UlProps Uses

type UlProps struct {
    AriaExpanded            bool
    AriaHasPopup            bool
    AriaLabelledBy          string
    ClassName               string
    DangerouslySetInnerHTML *DangerousInnerHTML
    DataSet                 DataSet
    ID                      string
    Key                     string
    OnChange                OnChange
    OnClick                 OnClick
    Ref                     Ref
    Role                    string
    Style                   *CSS
}

UlProps defines the properties for the <ul> element

Directories

PathSynopsis
cmd/coreGencoreGen is a go generate generator that helps to automate writing the core of myitcv.io/react.
cmd/cssGencssGen is a temporary code generator for the myitcv.io/react.CSS type
cmd/reactGenreactGen is a go generate generator that helps to automate the process of writing GopherJS React web applications.
cmd/reactVetreactVet is a vet program used to check the correctness of myitcv.io/react based packages.
cmd/reactVet/_testFiles
cmd/stateGenstateGen is a go generate generator that helps to automate the process of creating state trees for use in GopherJS React web applications.
cmd/stateGen/_testFiles
components/imm
examples
examples/blog/2017_04_16
examples/hellomessage
examples/immtodoapp
examples/markdowneditor
examples/sites/examplesshowcase
examples/sites/globalstate
examples/sites/globalstate/model
examples/sites/globalstate/state
examples/sites/hellomessage
examples/sites/helloworld
examples/sites/helloworldbootstrap
examples/sites/immtodoapp
examples/sites/latency
examples/sites/markdowneditor
examples/sites/present
examples/sites/syntaxviewer
examples/sites/timer
examples/sites/todoapp
examples/timer
examples/todoapp
internal/bundle
internal/core
internal/dev
internal/preact
internal/prod
internal/testutils
jsxPackage jsx allows you to render blocks of HTML as myitcv.io/react elements.
testutils

Package react imports 7 packages (graph) and is imported by 36 packages. Updated 2018-05-23. Refresh now. Tools for package owners.