GitXplorerGitXplorer
d

lit-hooks

public
1 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
e3875ba398f11391558a953a6a96f8dd4713d74b

version bump

ddarthtrevino committed 3 years ago
Unverified
48008917778aa492dabdf98ed7a241bbbb409f75

update package.json fields

ddarthtrevino committed 3 years ago
Unverified
1fbad74fc8abb5b7a10ea38bf77f396808bea16b

add github actions

ddarthtrevino committed 3 years ago
Unverified
51298ec2132cdba9016a82854c2bdafb20895c1f

add memoization hook

ddarthtrevino committed 3 years ago
Unverified
f210346858a29f97eacb6b0e897764504de8c2ab

improve test coverage, fix some bugs

ddarthtrevino committed 3 years ago
Unverified
423b909c05e06ec007f2d630d6d1b00e33d92f0c

effects cleanup

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.