文件名称:cycle-director:使用Director的cycle.js路由器驱动程序
文件大小:6KB
文件格式:ZIP
更新时间:2024-05-31 13:54:49
JavaScript
周期总监 这是首次尝试使用为制作路由器驱动程序 安装 npm install cycle-director 客户实例 import { run , Rx } from '@cycle/core' ; import { h , makeDOMDriver } from '@cycle/dom' ; import { makeClientDriver } from 'cycle-director' ; let author = ( ) => { return "author" } ; let books = ( ) => { return "books" } ; let viewBook = ( id ) => { return "viewBook: bookId is populated: " + id } ; let viewChapter = ( bookId , chapterNumb
【文件预览】:
cycle-director-master
----.gitignore(13B)
----README.md(3KB)
----.jsbeautifyrc(614B)
----LICENSE(1KB)
----package.json(833B)
----src()
--------index.js(3KB)
----.editorconfig(173B)
----lib()
--------index.js(3KB)