GitXplorerGitXplorer
d

lit-hooks

public
1 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
872f67cf5ad87f4d53ec48b9ba3cd7588f2518f9

Merge pull request #1 from darthtrevino/fix/update_comment

ddarthtrevino committed 3 years ago
Unverified
567d419dbb18583217af2b34534dd3b7366b6048

update commets

ddarthtrevino committed 3 years ago
Unverified
50d005c4156d9e8cfdf053f931480d62c871c1e6

fix a comment

ddarthtrevino committed 3 years ago
Unverified
b2fd635aff5909b0fc5bb890d4f883e87e9f9688

version bump

ddarthtrevino committed 3 years ago
Unverified
a365b748f04e1e707155ea30d75e43f5868ecdb9

add licence, repository

ddarthtrevino committed 3 years ago
Unverified
4796ce186d86b65d59285cf93ddf9d60db9f699c

add license file

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.