Documentation ¶
Overview ¶
Package jsx allows you to render blocks of HTML as github.com/lijianying10/react elements. It is a temporary runtime solution for what will become a compile-time transpilation, much like JSX's relationship with Javascript.
For more information see https://github.com/myitcv/react/wiki
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTML ¶
HTML is a runtime JSX-like parsereact. It parses the supplied HTML string into github.com/lijianying10/react element values. It exists as a stop-gap runtime solution to full JSX-like support within the GopherJS compilereact. It should only be used where the argument is a compile-time constant string (TODO enforce this within reactVet). HTML will panic in case s cannot be parsed as a valid HTML fragment
func HTMLElem ¶
HTMLElem is a convenience wrapper around HTML where only a single root element is expected. HTMLElem will panic if more than one HTML element results
func HTMLElemReactElementTemplate ¶
HTMLElemReactElementTemplate Parse Component map key as HTML node name. The key must be lower-case.
Types ¶
This section is empty.