GitXplorerGitXplorer
d

lit-hooks

public
1 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
9b3ddfde1e80108dc4fcc4e9ef5e93c72bb65a91

Create README.md

ddarthtrevino committed 3 years ago
Unverified
bdc7883a263aeeac1eadff359173b379b2a4219d

use esm TypeScript files

ddarthtrevino committed 3 years ago
Unverified
d3a25327fcade643febf6d8f59755ec0e415da77

add null check to unsubscirbe

ddarthtrevino committed 3 years ago
Unverified
0c25b48646b16872db86949e25fda3b1fe36f2e3

initial commit

ddarthtrevino committed 3 years ago

README

The README file for this repository.

lit-hooks

Basic implementation of some React hook patterns for Lit WebComponents

Note: Experimental Phase

The mental model provided by React hooks provide a refined developer experience, and in the case of useEffect, they can dramatically simplify the tasks of resource allocation and disposal.

In my own experiments with Lit I found that these resource-oriented tasks were somewhat cumbersome in comparison with React Hooks, and so I began experimenting with the ReactiveController API to make a facsimile of React hooks that would improve my own DX.

Currently, this repository contains Lit-variant of useEffect, although it is somewhat limited in comparison to its React counterpart.