neverland:像Hooks一样做出React以减轻负担

时间:2021-05-25 00:34:21
【文件属性】:
文件名称:neverland:像Hooks一样做出React以减轻负担
文件大小:633KB
文件格式:ZIP
更新时间:2021-05-25 00:34:21
JavaScript 梦幻岛 :rainbow: :unicorn: 在上照片 :megaphone: 社区公告 请在提问,以帮助围绕该项目的社区发展 :heart_suit: 更新,如果你正在寻找的东西甚至小于梦幻岛,千万不要错过 ! 通过打火机钩 import { Component , render , html , useState } from 'neverland' ; const Counter = Component ( ( initialState ) => { const [ count , setCount ] = useState ( initialState ) ; return html ` < button onclick = ${ ( ) => setCount ( count + 1 ) } > Count: ${ count } </ button > ` ; } ) ; // basic example, sho
【文件预览】:
neverland-master
----.gitignore(52B)
----codepen.md(386B)
----package.json(2KB)
----.travis.yml(110B)
----LICENSE(780B)
----index.js(55KB)
----tsconfig.json(252B)
----rollup.config.js(399B)
----README.md(7KB)
----min.js(18KB)
----.vscode()
--------settings.json(54B)
----esm()
--------index.js(3KB)
----.npmignore(127B)
----cjs()
--------package.json(19B)
--------index.js(4KB)
----img()
--------cosmic-timetraveler-unsplash-1080.jpg(583KB)
----test()
--------basic.html(680B)
--------click.html(721B)
--------focus.html(862B)
--------neverland.js(63KB)
--------context.html(183B)
--------tick.html(1KB)
--------index.js(1KB)
--------children.html(824B)
--------swr.html(1KB)
--------test.js(3KB)
--------button.html(810B)
--------index.html(435B)
--------coverage.json(4B)
----index.d.ts(2KB)

网友评论