Installation
Install with your favorite package manager, or check CDN Usage for other options:
sh
npm install @wroud/react-split-viewsh
yarn add @wroud/react-split-viewsh
pnpm add @wroud/react-split-viewsh
bun add @wroud/react-split-viewCJS Usage
@wroud/react-split-view is an ESM-only package. To use it in a CommonJS environment, dynamically import the module:
ts
async function main() {
const { useSplitView } = await import("@wroud/react-split-view");
// ...
}CDN Usage
For browser usage without bundling, load the module from esm.sh or esm.run:
html
<script type="module">
import { useSplitView } from "https://esm.sh/@wroud/react-split-view@1.0.0";
</script>