UNPKG

hoda-react

Version:

<div align="center"> <h1>:construction: flowbite-react (unreleased) :construction:</h1> <p> <a href="https://flowbite-react.com"> <img alt="Flowbite - Tailwind CSS components" width="350" src=".github/assets/flowbite-react-github.png"> <

10 lines (9 loc) 358 B
import { createContext, useContext } from 'react'; export const SidebarItemContext = createContext(undefined); export function useSidebarItemContext() { const context = useContext(SidebarItemContext); if (!context) { throw new Error('useSidebarItemContext should be used within the SidebarItemContext provider!'); } return context; }