文件名称:困扰:为Web组件实现的React的Hooks API:ghost:
文件大小:61KB
文件格式:ZIP
更新时间:2024-02-26 23:26:50
hooks web-components lit-html react-hooks WebComponents
闹鬼 :bat: :jack-o-*: React的Hooks API,但适用于标准Web组件和或 。 < html lang =" en " > < my> my> < script type =" module " > import { html } from 'https://unpkg.com/lit-html/lit-html.js' ; import { component , useState } from 'https://unpkg.com/haunted/haunted.js' ; function Counter (
【文件预览】:
haunted-master
----.gitignore(37B)
----package.json(964B)
----Makefile(582B)
----package-lock.json(76KB)
----src()
--------create-effect.ts(1KB)
--------virtual.ts(2KB)
--------use-context.ts(2KB)
--------hook.ts(1KB)
--------use-ref.ts(149B)
--------component.ts(5KB)
--------use-state.ts(989B)
--------use-callback.ts(161B)
--------use-layout-effect.ts(324B)
--------symbols.ts(644B)
--------interface.ts(307B)
--------use-memo.ts(608B)
--------state.ts(1KB)
--------create-context.ts(2KB)
--------core.ts(1KB)
--------use-effect.ts(300B)
--------use-reducer.ts(781B)
--------haunted.ts(139B)
--------scheduler.ts(2KB)
--------lit-haunted.ts(274B)
----.travis.yml(163B)
----LICENSE(1KB)
----tsconfig.json(198B)
----examples()
--------theme.html(2KB)
--------memo.html(680B)
--------counter.html(472B)
--------lit()
--------title.html(564B)
--------props.html(602B)
--------reducer.html(899B)
--------skate()
----readme.md(22KB)
----core.js(71B)
----test()
--------test-effects.js(4KB)
--------test-layout-effects.js(4KB)
--------test.html(827B)
--------test-virtual.js(4KB)
--------test-props.js(757B)
--------test-use-state.js(706B)
--------helpers.js(976B)
--------debug()
--------test-custom-hook.js(941B)
--------test-use-ref.js(819B)
--------test-export.js(723B)
--------types-test.ts(4KB)
--------test-core.js(874B)
--------test-context.js(4KB)
--------test-attrs.js(4KB)
--------test-shadow.js(2KB)