react

package
v0.0.0-...-5fef39c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2024 License: MIT, BSD-3-Clause Imports: 7 Imported by: 91

README

react

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

go get -u myitcv.io/react

Running the tests

As you can see in .travis.yml, the CI tests consist of running:

./_scripts/run_tests.sh

followed by ensuring that git is clean. This ensures that "current" generated files are committed to the repo.

Docs

Please start reading here.

Documentation

Overview

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/x/blob/master/react/_doc/README.md

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AElem

type AElem struct {
	Element
}

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

func A

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

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

type AProps

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

type AbbrElem struct {
	Element
}

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

func Abbr

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

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

type AbbrProps

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

type AriaSet map[string]string

type ArticleElem

type ArticleElem struct {
	Element
}

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

func Article

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

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

type ArticleProps

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

type AsideElem struct {
	Element
}

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

func Aside

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

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

type AsideProps

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

type BElem struct {
	Element
}

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

func B

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

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

type BProps

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

type BrElem struct {
	Element
}

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

func Br

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

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

type BrProps

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

type ButtonElem struct {
	Element
}

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

func Button

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

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

type ButtonProps

type ButtonProps struct {
	AriaExpanded            bool
	AriaHasPopup            bool
	AriaLabelledBy          string
	ClassName               string
	DangerouslySetInnerHTML *DangerousInnerHTML
	DataSet                 DataSet
	Disabled                string
	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

type CSS struct {
	Float      string
	FontSize   string
	FontStyle  string
	FontWeight 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

type CaptionElem struct {
	Element
}

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

func Caption

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

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

type CaptionProps

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

type CodeElem struct {
	Element
}

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

func Code

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

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

type CodeProps

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

type Component interface {
	RendersElement() Element
}

type ComponentBuilder

type ComponentBuilder func(elem ComponentDef) Component

type ComponentDef

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

func (c ComponentDef) Children() []Element

func (ComponentDef) ForceUpdate

func (c ComponentDef) ForceUpdate()

func (ComponentDef) Props

func (c ComponentDef) Props() Props

func (ComponentDef) SetState

func (c ComponentDef) SetState(i State)

func (ComponentDef) State

func (c ComponentDef) State() State

type DangerousInnerHTML

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

func NewDangerousInnerHTML(s string) *DangerousInnerHTML

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

type DataSet

type DataSet map[string]string

type DivElem

type DivElem struct {
	Element
}

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

func Div

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

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

type DivProps

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

type Element = core.Element

func CreateElement

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

func Render

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

type EmElem

type EmElem struct {
	Element
}

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

func Em

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

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

type EmProps

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

type Event interface{}

type FooterElem

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

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

type FormElem struct {
	Element
}

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

func Form

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

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

type FormProps

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

FormProps defines the properties for the <form> element

type FragmentElem

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

func Fragment(children ...Element) *FragmentElem

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

type H1Elem

type H1Elem struct {
	Element
}

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

func H1

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

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

type H1Props

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

type H2Elem struct {
	Element
}

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

func H2

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

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

type H2Props

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

type H3Elem struct {
	Element
}

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

func H3

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

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

type H3Props

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

type H4Elem struct {
	Element
}

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

func H4

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

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

type H4Props

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

type H5Elem struct {
	Element
}

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

func H5

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

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

type H5Props

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

type H6Elem struct {
	Element
}

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

func H6

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

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

type H6Props

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

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

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

type HrElem struct {
	Element
}

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

func Hr

func Hr(props *HrProps) *HrElem

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

type HrProps

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

type IElem struct {
	Element
}

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

func I

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

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

type IFrameElem

type IFrameElem struct {
	Element
}

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

func IFrame

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

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

type IFrameProps

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

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

type ImgElem struct {
	Element
}

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

func Img

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

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

type ImgProps

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

type InputElem struct {
	Element
}

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

func Input

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

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

type InputProps

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

type LabelElem struct {
	Element
}

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

func Label

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

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

type LabelProps

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

type LiElem struct {
	Element
}

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

func Li

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

func (l *LiElem) RendersLi(*LiElem)

type LiProps

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

type MainElem struct {
	Element
}

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

func Main

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

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

type MainProps

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

type OnChange interface {
	Event

	OnChange(e *SyntheticEvent)
}

type OnClick

type OnClick interface {
	Event

	OnClick(e *SyntheticMouseEvent)
}

type OnSubmit

type OnSubmit interface {
	Event

	OnSubmit(e *SyntheticEvent)
}

type OptionElem

type OptionElem struct {
	Element
}

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

func Option

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

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

type OptionProps

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

type PElem struct {
	Element
}

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

func P

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

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

type PProps

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

type PreElem struct {
	Element
}

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

func Pre

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

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

type PreProps

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

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

type Ref

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

type RendersLi

type RendersLi interface {
	Element
	RendersLi(*LiElem)
}

type S

type S = core.S

S is the React representation of a string

func Sprintf

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

type SelectElem

type SelectElem struct {
	Element
}

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

func Select

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

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

type SelectProps

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

type SpanElem struct {
	Element
}

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

func Span

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

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

type SpanProps

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

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

type StrikeElem

type StrikeElem struct {
	Element
}

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

func Strike

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

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

type StrikeProps

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

type SupElem struct {
	Element
}

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

func Sup

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

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

type SupProps

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

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

func (*SyntheticEvent) Target

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

type SyntheticMouseEvent

type SyntheticMouseEvent struct {
	*SyntheticEvent

	ClientX int `js:"clientX"`
}

type TableElem

type TableElem struct {
	Element
}

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

func Table

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

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

type TableProps

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

type TbodyElem struct {
	Element
}

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

func Tbody

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

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

type TbodyProps

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

type TdElem struct {
	Element
}

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

func Td

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

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

type TdProps

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

type TextAreaElem struct {
	Element
}

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

func TextArea

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

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

type TextAreaProps

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

type ThElem struct {
	Element
}

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

func Th

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

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

type ThProps

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

type TheadElem struct {
	Element
}

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

func Thead

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

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

type TheadProps

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

type TrElem struct {
	Element
}

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

func Tr

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

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

type TrProps

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

type UlElem struct {
	Element
}

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

func Ul

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

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

type UlProps

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

Path Synopsis
cmd
coreGen
coreGen is a go generate generator that helps to automate writing the core of myitcv.io/react.
coreGen is a go generate generator that helps to automate writing the core of myitcv.io/react.
cssGen
cssGen is a temporary code generator for the myitcv.io/react.CSS type
cssGen is a temporary code generator for the myitcv.io/react.CSS type
reactGen
reactGen is a go generate generator that helps to automate the process of writing GopherJS React web applications.
reactGen is a go generate generator that helps to automate the process of writing GopherJS React web applications.
reactVet
reactVet is a vet program used to check the correctness of myitcv.io/react based packages.
reactVet is a vet program used to check the correctness of myitcv.io/react based packages.
stateGen
stateGen is a go generate generator that helps to automate the process of creating state trees for use in GopherJS React web applications.
stateGen is a go generate generator that helps to automate the process of creating state trees for use in GopherJS React web applications.
components
imm
sites/raffle/checker
checker is a simpler command line tool for checking entries to the raffle
checker is a simpler command line tool for checking entries to the raffle
internal
dev
Package jsx allows you to render blocks of HTML as myitcv.io/react elements.
Package jsx allows you to render blocks of HTML as myitcv.io/react elements.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL