Skip to content
H

haunted

Hooks for web components

by matthewpFree

#868in UI Libraries
0In stores

Description

Haunted is a library that brings React's Hooks API to standard web components. It works with lit-html or hyperHTML for rendering. Components…

Highlights

  • React Hooks API for web components
  • Works with lit-html or hyperHTML
  • useState, useEffect, useReducer and more
  • Reuse npm hooks by aliasing packages
  • BSD-2-Clause license

Ratings & Reviews

No ratings yet

Be the first to rate haunted.

People also visit

P

pion

React's Hooks API for web components with lit-html

UI Libraries
Launch
T

@tryvital/vital-link

React hooks and components for integrating with the Vital Link

UI Libraries
Launch
S

shadcnhooks

A comprehensive React Hooks Collection built with Shadcn

UI Libraries
Launch
W

@wc-toolkit/storybook-helpers

Helpers designed to make integrating Web Components with Storybook easier

UI Libraries
Launch
I

@iyulab/components

web-components library based on lit-element made by iyulab

UI Libraries
Launch
M

Mantine

A fully featured React components library

UI Libraries
Launch

haunted FAQ

What is Haunted?

A library that implements React's Hooks API for standard web components, using lit-html or hyperHTML for rendering.

Which hooks are supported?

useCallback, useContext, useController, useEffect, useLayoutEffect, useMemo, useReducer, useRef and useState.

Can I reuse React hooks from npm?

The README says the API matches React's, so you can alias the package names in your bundler's config to reuse hooks from npm.

Where can I find the docs?

The README links to the documentation and to a gist with more example integrations.

What license is it under?

BSD-2-Clause, as stated in the README.

What are the best haunted alternatives?

Popular alternatives to haunted include pion, @tryvital/vital-link and shadcnhooks. See all haunted alternatives

Developer Stuff

Badges