the-window
Browser utility for the-framework
Installation
$ npm install the-window --save
Usage
'use strict'
const React = require('react')
const {once, mount} = require('the-window')
async function tryExample () {
once('DOMContentLoaded', () => {
const element = React.createElement('div')
mount(element, 'the-window-dom-id')
})
}
tryExample().catch((err) => console.error(err))
API Guide
License
This software is released under the MIT License.