Home Manual Reference Source Test

References

summary
public

returns a valid jsonx.children property

public

Used to pass properties down to child components if passprops is set to true

public

F getJSONXChildren(options: *)

returns React Child Elements via JSONX

public
public

F getBoundedComponents(options: Object, boundedComponents: string[]): Object

getBoundedComponents returns reactComponents with certain elements that have this bounded to select components in the boundedComponents list

public

returns a react component from a component library

public

F getComponentFromMap(options: Object): string | function | class

returns a react element from jsonx.component

public

Returns a new function from an options object

public

F getReactClassComponent(reactComponent: Object): Function

Returns a new React Component

public
public

F getReactFunctionComponent(reactComponent: *, functionBody: String): Function

Returns new React Function Component

private

F __express(filePath: string, options: object, callback: *)

Use JSONX for express view rendering

private

Exposes react module used in JSONX

private

Exposes react dom module used in JSONX

private

Exposes global hook used in JSONX

public

F compile(jsonx: Object, resources: Object): function

converts a jsonx json object into a react function component

public

converts a json object {type,props,children} into a react element

public

Use React.createElement and JSONX JSON to create React elements

public

F jsonToJSX(json: Object): String

converts JSONX JSON IR to JSX

public

F jsonxRender(config: object)

Use JSONX without any configuration to render JSONX JSON to HTML and insert JSONX into querySelector using ReactDOM.render

public

F outputHTML(config: object): string

Use ReactDOMServer.renderToString to render html from JSONX

public

F outputJSON(jsonx: object, resources: object): Object

Compiles JSONX into JSON IR format for react create element

public

F outputJSX(json: Object): String

converts JSONX JSON IR to JSX

public
public

F getChildrenComponents(options: *)

returns children jsonx components defined on spreadComponent spread over an array on props.spread

public

Resolves jsonx.__dangerouslyInsertComponents into an object that turns each value into a React components.

public

F getComputedProps(options: Object)

Returns computed properties for React Components and any property that's prefixed with __ is a computedProperty

public

F getEvalProps(options: Object): Object

Used to evalute javascript and set those variables as props.

public

Takes a function string and returns a function on either this.props or window.

public

Returns a resolved object from function strings that has functions pulled from jsonx.__functionProps

public

F getJSONXProps(traverseObject: Object, options: Object): Object

It uses traverse on a traverseObject to returns a resolved object on propName.

public

returns the names of parameters from a function declaration

public

Resolves jsonx.__dangerouslyInsertReactComponents into an object that turns each value into a React components.

public
public

Returns a resolved object that has React Components pulled from window.__jsonx_custom_elements

public

Used to evaluate whether or not to render a component

public

F async fetchJSON(path: String, options: Object): Object

Fetches JSON from remote path

public

Use to test if can bind components this context for react-redux-router

public

Transforms Valid JSONX JSON to SimpleJSONX {component,props,children} => {[component]:{props,children}}

public

F simpleJSONXSyntax(simpleJSONX: Object): Object

Transforms SimpleJSONX to Valid JSONX JSON {[component]:{props,children}} => {component,props,children}

public

F traverse(paths: Object, data: Object): Object

take an object of array paths to traverse and resolve

public

validates simple JSONX Syntax {[component]:{props,children}}

public

F validateJSONX(jsonx: Object, returnAllErrors: Boolean): Boolean | Error[]

Validates JSONX JSON Syntax

public
public

object of all react components available for JSONX

private
private
private
private
public
public
public
public
public
public