@carbonare/hooks

React hooks for Carbon Design System

Usage no npm install needed!

<script type="module">
  import carbonareHooks from 'https://cdn.skypack.dev/@carbonare/hooks';
</script>

README

@carbonare/hooks

Some react hooks for help building frontend with Carbon Design System

Usage

import { useRouter } from '@carbonare/hooks';

const router = useRouter();

router.push("/path");
router.replace("/path");
router.match(...your logic here)
router.pathname "...get current pathname"