Skip to content
P

pion

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

by pionjsOpen source

#1442in UI Libraries
0In stores

Description

pion brings React's hooks API to standard web components. It works with lit-html or hyperHTML and is forked from the haunted library. Develo…

Highlights

  • React-style hooks for web components
  • useState, useEffect, useReducer and more
  • Works with lit-html or hyperHTML
  • Re-renders when aria, title, lang or dir change

Ratings & Reviews

No ratings yet

Be the first to rate pion.

People also visit

H

haunted

Hooks for web components

UI Libraries
Launch
T

@tryvital/vital-link

React hooks and components for integrating with the Vital Link

UI Libraries
Launch
H

How to use Web Components in React

A tutorial on how to use Web Components in React

UI Libraries
Launch
A

atomico

Atomico is a small library

UI Libraries
Launch
I

@iyulab/components

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

UI Libraries
Launch
C

@clicktap/ui

A library of React UI components and low-level hooks

UI Libraries
Launch

pion FAQ

What is pion?

A library that implements React's hooks API for standard web components, using lit-html or hyperHTML as the renderer.

Can I reuse React hooks from npm?

The README says you can, by aliasing the package names in your bundler config, because pion supports the same hooks API.

Which hooks are supported?

The README lists useCallback, useContext, useEffect, useHost, useLayoutEffect, useMemo, useProperty, useReducer, useRef and useState.

What license is it under?

The repository states the BSD-2-Clause license.

What are the best pion alternatives?

Popular alternatives to pion include haunted, @tryvital/vital-link and How to use Web Components in React. See all pion alternatives

Developer Stuff

Badges