sg-react
React utility for SUGOS
Installation
$ npm install sg-react --save
Usage
'use strict' const mount once = const React = // Define an componentconst RootComponent = Reactconst CONTAINER_ID = 'my-mount-root-element'
Functions
Available functions
Signature | Description |
---|---|
.mount(containerId, Component, props) -> Promise |
Mount a react component into DOM tree. |
.once(event, handler) |
Bind window event once |
License
This software is released under the Apache-2.0 License.