@the-/window

15.8.3 • Public • Published

@the-/window

npm Version

Browser utility for the-framework

Installation

$ npm install @the-/window --save

Usage

'use strict'

const React = require('react')
const { mount, once } = 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

See API Guide for more detail

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i @the-/window

Weekly Downloads

16

Version

15.8.3

License

MIT

Unpacked Size

69.7 kB

Total Files

37

Last publish

Collaborators

  • okunishinishi