Skip to content

Installation

NPM versionNPM downloadsSizeCoverageGitHub

Install with your favorite package manager, or check CDN Usage for other options:

sh
npm install @wroud/react-tree
sh
yarn add @wroud/react-tree
sh
pnpm add @wroud/react-tree
sh
bun add @wroud/react-tree

CJS Usage

@wroud/react-tree is ESM-only. To use it from CommonJS, dynamically import the module:

ts
async function main() {
  const { Tree } = await import("@wroud/react-tree");
}

CDN Usage

For quick demos in the browser, load the module from esm.sh or esm.run:

html
<script type="module">
  import { Tree } from "https://esm.sh/@wroud/react-tree@1.0.0";
</script>

Released under the MIT License.