get-root
v0.0.3
Published
returns a <div id="root" /> element either found or created on the document body
Downloads
2
Readme
get-root
Installation
npm install get-root --save-dev
Usage
import React from 'react'
import getRoot from 'get-root'
import { render } from 'react-dom'
render(<div>Hello world</div>, getRoot())