find-or-create-root
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

find-or-create-root

A simple utility for identifying a target DOM node, or creating one if none exists. Especially helpful when defining a root element for a React Portal.

Package Sidebar

Install

npm i find-or-create-root

Weekly Downloads

5

Version

1.0.1

License

Apache-2.0

Unpacked Size

13.7 kB

Total Files

6

Last publish

Collaborators

  • sisterjones