react library

A Dart library for building UI using ReactJS.

Classes

Component
Top-level ReactJS Component class which provides the ReactJS Component API [...]
Component2
Top-level ReactJS Component class which provides the ReactJS Component API. [...]
Context
The return type of createContext, Wraps ReactContext for use in Dart. Allows access to Provider and Consumer Components. [...]
ContextHelpers
A context utility for assisting with common needs of ReactDartContext. [...]
NotSpecified
PropValidatorInfo
Metadata about a prop being validated by a PropValidator.
ReactComponentFactoryProxy
Creates a ReactJS virtual DOM instance (ReactElement on the client).
SyntheticAnimationEvent
SyntheticClipboardEvent
SyntheticDataTransfer
SyntheticEvent
A cross-browser wrapper around the browser's nativeEvent. [...]
SyntheticFocusEvent
SyntheticFormEvent
SyntheticKeyboardEvent
SyntheticMouseEvent
SyntheticPointerEvent
SyntheticTouchEvent
SyntheticTransitionEvent
SyntheticUIEvent
SyntheticWheelEvent

Mixins

TypedSnapshot<TSnapshot>
Mixin that enforces consistent typing of the snapshot parameter returned by Component2.getSnapshotBeforeUpdate and passed into Component2.componentDidUpdate. [...]

Properties

a ↔ dynamic
The HTML <a> AnchorElement.
read / write
abbr ↔ dynamic
The HTML <abbr> Element.
read / write
address ↔ dynamic
The HTML <address> Element.
read / write
altGlyph ↔ dynamic
The SVG <altGlyph> AltGlyphElement.
read / write
altGlyphDef ↔ dynamic
The SVG <altGlyphDef> AltGlyphDefElement.
read / write
altGlyphItem ↔ dynamic
The SVG <altGlyphItem> AltGlyphItemElement.
read / write
animate ↔ dynamic
The SVG <animate> AnimateElement.
read / write
animateColor ↔ dynamic
The SVG <animateColor> AnimateColorElement.
read / write
animateMotion ↔ dynamic
The SVG <animateMotion> AnimateMotionElement.
read / write
animateTransform ↔ dynamic
The SVG <animateTransform> AnimateTransformElement.
read / write
area ↔ dynamic
The HTML <area> AreaElement.
read / write
article ↔ dynamic
The HTML <article> Element.
read / write
aside ↔ dynamic
The HTML <aside> Element.
read / write
audio ↔ dynamic
The HTML <audio> AudioElement.
read / write
b ↔ dynamic
The HTML <b> Element.
read / write
base ↔ dynamic
The HTML <base> BaseElement.
read / write
bdi ↔ dynamic
The HTML <bdi> Element.
read / write
bdo ↔ dynamic
The HTML <bdo> Element.
read / write
big ↔ dynamic
The HTML <big> Element.
read / write
blockquote ↔ dynamic
The HTML <blockquote> Element.
read / write
body ↔ dynamic
The HTML <body> BodyElement.
read / write
br ↔ dynamic
The HTML <br> BRElement.
read / write
button ↔ dynamic
The HTML <button> ButtonElement.
read / write
canvas ↔ dynamic
The HTML <canvas> CanvasElement.
read / write
caption ↔ dynamic
The HTML <caption> Element.
read / write
circle ↔ dynamic
The SVG <circle> CircleElement.
read / write
cite ↔ dynamic
The HTML <cite> Element.
read / write
clipPath ↔ dynamic
The SVG <clipPath> ClipPathElement.
read / write
code ↔ dynamic
The HTML <code> Element.
read / write
col ↔ dynamic
The HTML <col> Element.
read / write
colgroup ↔ dynamic
The HTML <colgroup> Element.
read / write
colorProfile ↔ dynamic
The SVG <color-profile> ColorProfileElement.
read / write
cursor ↔ dynamic
The SVG <cursor> CursorElement.
read / write
data ↔ dynamic
The HTML <data> Element.
read / write
datalist ↔ dynamic
The HTML <datalist> DataListElement.
read / write
dd ↔ dynamic
The HTML <dd> Element.
read / write
defs ↔ dynamic
The SVG <defs> DefsElement.
read / write
del ↔ dynamic
The HTML <del> Element.
read / write
desc ↔ dynamic
The SVG <desc> DescElement.
read / write
details ↔ dynamic
The HTML <details> DetailsElement.
read / write
dfn ↔ dynamic
The HTML <dfn> Element.
read / write
dialog ↔ dynamic
The HTML <dialog> DialogElement.
read / write
discard ↔ dynamic
The SVG <discard> DiscardElement.
read / write
div ↔ dynamic
The HTML <div> DivElement.
read / write
dl ↔ dynamic
The HTML <dl> DListElement.
read / write
dt ↔ dynamic
The HTML <dt> Element.
read / write
ellipse ↔ dynamic
The SVG <ellipse> EllipseElement.
read / write
em ↔ dynamic
The HTML <em> Element.
read / write
embed ↔ dynamic
The HTML <embed> EmbedElement.
read / write
feBlend ↔ dynamic
The SVG <feBlend> FeBlendElement.
read / write
feColorMatrix ↔ dynamic
The SVG <feColorMatrix> FeColorMatrixElement.
read / write
feComponentTransfer ↔ dynamic
The SVG <feComponentTransfer> FeComponentTransferElement.
read / write
feComposite ↔ dynamic
The SVG <feComposite> FeCompositeElement.
read / write
feConvolveMatrix ↔ dynamic
The SVG <feConvolveMatrix> FeConvolveMatrixElement.
read / write
feDiffuseLighting ↔ dynamic
The SVG <feDiffuseLighting> FeDiffuseLightingElement.
read / write
feDisplacementMap ↔ dynamic
The SVG <feDisplacementMap> FeDisplacementMapElement.
read / write
feDistantLight ↔ dynamic
The SVG <feDistantLight> FeDistantLightElement.
read / write
feDropShadow ↔ dynamic
The SVG <feDropShadow> FeDropShadowElement.
read / write
feFlood ↔ dynamic
The SVG <feFlood> FeFloodElement.
read / write
feFuncA ↔ dynamic
The SVG <feFuncA> FeFuncAElement.
read / write
feFuncB ↔ dynamic
The SVG <feFuncB> FeFuncBElement.
read / write
feFuncG ↔ dynamic
The SVG <feFuncG> FeFuncGElement.
read / write
feFuncR ↔ dynamic
The SVG <feFuncR> FeFuncRElement.
read / write
feGaussianBlur ↔ dynamic
The SVG <feGaussianBlur> FeGaussianBlurElement.
read / write
feImage ↔ dynamic
The SVG <feImage> FeImageElement.
read / write
feMerge ↔ dynamic
The SVG <feMerge> FeMergeElement.
read / write
feMergeNode ↔ dynamic
The SVG <feMergeNode> FeMergeNodeElement.
read / write
feMorphology ↔ dynamic
The SVG <feMorphology> FeMorphologyElement.
read / write
feOffset ↔ dynamic
The SVG <feOffset> FeOffsetElement.
read / write
fePointLight ↔ dynamic
The SVG <fePointLight> FePointLightElement.
read / write
feSpecularLighting ↔ dynamic
The SVG <feSpecularLighting> FeSpecularLightingElement.
read / write
feSpotLight ↔ dynamic
The SVG <feSpotLight> FeSpotLightElement.
read / write
feTile ↔ dynamic
The SVG <feTile> FeTileElement.
read / write
feTurbulence ↔ dynamic
The SVG <feTurbulence> FeTurbulenceElement.
read / write
fieldset ↔ dynamic
The HTML <fieldset> FieldSetElement.
read / write
figcaption ↔ dynamic
The HTML <figcaption> Element.
read / write
figure ↔ dynamic
The HTML <figure> Element.
read / write
filter ↔ dynamic
The SVG <filter> FilterElement.
read / write
font ↔ dynamic
The SVG <font> FontElement.
read / write
fontFace ↔ dynamic
The SVG <font-face> FontFaceElement.
read / write
fontFaceFormat ↔ dynamic
The SVG <font-face-format> FontFaceFormatElement.
read / write
fontFaceName ↔ dynamic
The SVG <font-face-name> FontFaceNameElement.
read / write
fontFaceSrc ↔ dynamic
The SVG <font-face-src> FontFaceSrcElement.
read / write
fontFaceUri ↔ dynamic
The SVG <font-face-uri> FontFaceUriElement.
read / write
The HTML <footer> Element.
read / write
foreignObject ↔ dynamic
The SVG <foreignObject> ForeignObjectElement.
read / write
form ↔ dynamic
The HTML <form> FormElement.
read / write
Fragment ReactJsComponentFactoryProxy
Fragment component that allows the wrapping of children without the necessity of using an element that adds an additional layer to the DOM (div, span, etc). [...]
read / write
g ↔ dynamic
The SVG <g> GElement.
read / write
glyph ↔ dynamic
The SVG <glyph> GlyphElement.
read / write
glyphRef ↔ dynamic
The SVG <glyphRef> GlyphRefElement.
read / write
h1 ↔ dynamic
The HTML <h1> HeadingElement.
read / write
h2 ↔ dynamic
The HTML <h2> HeadingElement.
read / write
h3 ↔ dynamic
The HTML <h3> HeadingElement.
read / write
h4 ↔ dynamic
The HTML <h4> HeadingElement.
read / write
h5 ↔ dynamic
The HTML <h5> HeadingElement.
read / write
h6 ↔ dynamic
The HTML <h6> HeadingElement.
read / write
hatch ↔ dynamic
The SVG <hatch> HatchElement.
read / write
hatchpath ↔ dynamic
The SVG <hatchpath> HatchpathElement.
read / write
The HTML <head> HeadElement.
read / write
The HTML <header> Element.
read / write
hkern ↔ dynamic
The SVG <hkern> HkernElement.
read / write
hr ↔ dynamic
The HTML <hr> HRElement.
read / write
html ↔ dynamic
The HTML <html> HtmlHtmlElement.
read / write
i ↔ dynamic
The HTML <i> Element.
read / write
iframe ↔ dynamic
The HTML <iframe> IFrameElement.
read / write
image ↔ dynamic
The SVG <image> ImageElement.
read / write
img ↔ dynamic
The HTML <img> ImageElement.
read / write
input ↔ dynamic
The HTML <input> InputElement.
read / write
ins ↔ dynamic
The HTML <ins> Element.
read / write
kbd ↔ dynamic
The HTML <kbd> Element.
read / write
keygen ↔ dynamic
The HTML <keygen> KeygenElement.
read / write
label ↔ dynamic
The HTML <label> LabelElement.
read / write
legend ↔ dynamic
The HTML <legend> LegendElement.
read / write
li ↔ dynamic
The HTML <li> LIElement.
read / write
line ↔ dynamic
The SVG <line> LineElement.
read / write
linearGradient ↔ dynamic
The SVG <linearGradient> LinearGradientElement.
read / write
The HTML <link> LinkElement.
read / write
main ↔ dynamic
The HTML <main> Element.
read / write
map ↔ dynamic
The HTML <map> MapElement.
read / write
mark ↔ dynamic
The HTML <mark> Element.
read / write
marker ↔ dynamic
The SVG <marker> MarkerElement.
read / write
mask ↔ dynamic
The SVG <mask> MaskElement.
read / write
The HTML <menu> MenuElement.
read / write
The HTML <menuitem> MenuItemElement.
read / write
mesh ↔ dynamic
The SVG <mesh> MeshElement.
read / write
meshgradient ↔ dynamic
The SVG <meshgradient> MeshgradientElement.
read / write
meshpatch ↔ dynamic
The SVG <meshpatch> MeshpatchElement.
read / write
meshrow ↔ dynamic
The SVG <meshrow> MeshrowElement.
read / write
meta ↔ dynamic
The HTML <meta> MetaElement.
read / write
metadata ↔ dynamic
The SVG <metadata> MetadataElement.
read / write
meter ↔ dynamic
The HTML <meter> MeterElement.
read / write
missingGlyph ↔ dynamic
The SVG <missing-glyph> MissingGlyphElement.
read / write
mpath ↔ dynamic
The SVG <mpath> MpathElement.
read / write
The HTML <nav> Element.
read / write
noscript ↔ dynamic
The HTML <noscript> Element.
read / write
object ↔ dynamic
The HTML <object> ObjectElement.
read / write
ol ↔ dynamic
The HTML <ol> OListElement.
read / write
optgroup ↔ dynamic
The HTML <optgroup> OptGroupElement.
read / write
option ↔ dynamic
The HTML <option> OptionElement.
read / write
output ↔ dynamic
The HTML <output> OutputElement.
read / write
p ↔ dynamic
The HTML <p> ParagraphElement.
read / write
param ↔ dynamic
The HTML <param> ParamElement.
read / write
path ↔ dynamic
The SVG <path> PathElement.
read / write
pattern ↔ dynamic
The SVG <pattern> PatternElement.
read / write
picture ↔ dynamic
The HTML <picture> PictureElement.
read / write
polygon ↔ dynamic
The SVG <polygon> PolygonElement.
read / write
polyline ↔ dynamic
The SVG <polyline> PolylineElement.
read / write
pre ↔ dynamic
The HTML <pre> PreElement.
read / write
progress ↔ dynamic
The HTML <progress> ProgressElement.
read / write
q ↔ dynamic
The HTML <q> QuoteElement.
read / write
radialGradient ↔ dynamic
The SVG <radialGradient> RadialGradientElement.
read / write
rect ↔ dynamic
The SVG <rect> RectElement.
read / write
registerComponent ↔ Function
Registers componentFactory on both client and server.
read / write
registerComponent2 ComponentRegistrar2
Registers componentFactory on both client and server.
read / write
rp ↔ dynamic
The HTML <rp> Element.
read / write
rt ↔ dynamic
The HTML <rt> Element.
read / write
ruby ↔ dynamic
The HTML <ruby> Element.
read / write
s ↔ dynamic
The HTML <s> Element.
read / write
samp ↔ dynamic
The HTML <samp> Element.
read / write
script ↔ dynamic
The HTML <script> ScriptElement.
read / write
section ↔ dynamic
The HTML <section> Element.
read / write
select ↔ dynamic
The HTML <select> SelectElement.
read / write
small ↔ dynamic
The HTML <small> Element.
read / write
solidcolor ↔ dynamic
The SVG <solidcolor> SolidcolorElement.
read / write
source ↔ dynamic
The HTML <source> SourceElement.
read / write
span ↔ dynamic
The HTML <span> SpanElement.
read / write
stop ↔ dynamic
The SVG <stop> StopElement.
read / write
strong ↔ dynamic
The HTML <strong> Element.
read / write
style ↔ dynamic
The HTML <style> StyleElement.
read / write
sub ↔ dynamic
The HTML <sub> Element.
read / write
summary ↔ dynamic
The HTML <summary> Element.
read / write
sup ↔ dynamic
The HTML <sup> Element.
read / write
svg ↔ dynamic
The SVG <svg> SvgSvgElement.
read / write
svgSet ↔ dynamic
The SVG <set> SetElement.
read / write
svgSwitch ↔ dynamic
The SVG <switch> SwitchElement.
read / write
symbol ↔ dynamic
The SVG <symbol> SymbolElement.
read / write
table ↔ dynamic
The HTML <table> TableElement.
read / write
tbody ↔ dynamic
The HTML <tbody> TableSectionElement.
read / write
td ↔ dynamic
The HTML <td> TableCellElement.
read / write
text ↔ dynamic
The SVG <text> TextElement.
read / write
textarea ↔ dynamic
The HTML <textarea> TextAreaElement.
read / write
textPath ↔ dynamic
The SVG <textPath> TextPathElement.
read / write
tfoot ↔ dynamic
The HTML <tfoot> TableSectionElement.
read / write
th ↔ dynamic
The HTML <th> TableCellElement.
read / write
thead ↔ dynamic
The HTML <thead> TableSectionElement.
read / write
time ↔ dynamic
The HTML <time> TimeInputElement.
read / write
title ↔ dynamic
The HTML <title> TitleElement.
read / write
tr ↔ dynamic
The HTML <tr> TableRowElement.
read / write
track ↔ dynamic
The HTML <track> TrackElement.
read / write
tref ↔ dynamic
The SVG <tref> TrefElement.
read / write
tspan ↔ dynamic
The SVG <tspan> TSpanElement.
read / write
u ↔ dynamic
The HTML <u> Element.
read / write
ul ↔ dynamic
The HTML <ul> UListElement.
read / write
unknown ↔ dynamic
The SVG <unknown> UnknownElement.
read / write
use ↔ dynamic
The SVG <use> UseElement.
read / write
variable ↔ dynamic
The HTML <var> Element. [...]
read / write
video ↔ dynamic
The HTML <video> VideoElement.
read / write
view ↔ dynamic
The SVG <view> ViewElement.
read / write
vkern ↔ dynamic
The SVG <vkern> VkernElement.
read / write
wbr ↔ dynamic
The HTML <wbr> Element.
read / write

Functions

createContext<TValue>([TValue defaultValue, int calculateChangedBits(TValue currentValue TValue nextValue) ]) Context
Creates a Context object. When React renders a component that subscribes to this Context object it will read the current context value from the closest matching Provider above it in the tree. [...]
createRef<T>() Ref<T>
Creates a Ref object that can be attached to a ReactElement via the ref prop. [...]
forwardRef(dynamic wrapperFunction(Map props, Ref ref)) ReactJsComponentFactoryProxy
Automatically passes a Ref through a component to one of its children. [...]
setReactConfiguration(dynamic domCreator, { dynamic customRegisterComponent, { ComponentRegistrar2 customRegisterComponent2 }) → void
Set configuration based on functions provided as arguments. [...]

Typedefs

ComponentFactory<T extends Component>() → T
ComponentRegistrar(ComponentFactory<Component> componentFactory, [ Iterable<String> skipMethods ]) ReactComponentFactoryProxy
ComponentRegistrar2(ComponentFactory<Component2> componentFactory, { Iterable<String> skipMethods, Component2BridgeFactory bridgeFactory }) ReactDartComponentFactoryProxy2<Component2>
PropValidator<T>(T props, PropValidatorInfo info) → Error
Typedef for Component2.propTypes - used to check the validity of one or more of the props. [...]