Component.js:Mithril 之上的组合库。 深受 React 启发

时间:2021-07-10 21:29:42
【文件属性】:
文件名称:Component.js:Mithril 之上的组合库。 深受 React 启发
文件大小:230KB
文件格式:ZIP
更新时间:2021-07-10 21:29:42
JavaScript 组件.js Component.js 是一个轻量级的玩具库,建立在之上,受启发来创建高效的 UI 组件。 这是一个 Todo 应用程序的简单示例: // Model of the application var tasksModel = Component . model ( { tasks : [ ] , taskName : '' } ) ; // Component to display a particular task in the todo list function TaskItem ( task , model ) { function flipTaskState ( task ) { return function ( ) { var tasks = _ . map ( model . getStat
【文件预览】:
Component.js-master
----elem()
--------elem.min.js(6KB)
--------package.json(363B)
--------elem-webcomp.js(2KB)
--------index.html(12KB)
--------elem.js(13KB)
----package.json(371B)
----webcomponent()
--------package.json(481B)
--------react-build()
--------index.html(921B)
--------components()
--------react-src()
--------issue()
----readme.md(5KB)
----demo.html(957B)
----.gitignore(54B)
----demo()
--------simpletodo2.js(4KB)
--------todo2.js(8KB)
--------demo-4.html(689B)
--------simpletodo.html(693B)
--------demo-2.js(2KB)
--------simpletodo2.html(694B)
--------todo.html(687B)
--------demo-4.js(3KB)
--------demo-1.html(715B)
--------todo.js(8KB)
--------demo-1.js(2KB)
--------demo-3.html(689B)
--------demo-3.js(3KB)
--------simpletodo.js(5KB)
--------todo2.html(688B)
--------demo-2.html(689B)
----Component.js(9KB)

网友评论