文件名称:bs-preact:不推荐使用https
文件大小:154KB
文件格式:ZIP
更新时间:2024-04-05 15:02:29
OCaml
不推荐使用 ,它具有更多功能,可以与最新的BuckleScript一起使用,并且可以与React和Preact一起使用。
bs-preact
为(OCaml | ReasonML)+ BuckleScript设计的有针对性的Preact v10绑定,带有编译时实施。
|
概述
“你好,世界!” bs-preact的外观如下:
module P = Preact
let main = P. h1 [ P. id " hello " ] [ P. string " Hello, world! " ]
let () =
match P. find " main " with
| Some element -> P. render main element
| None -> Js.Console. error "
【文件预览】:
bs-preact-master
----.gitattributes(16B)
----yarn.lock(276KB)
----.ocamlformat(80B)
----src()
--------Preact_Event.ml(516B)
--------Preact_Svg.bs.js(26KB)
--------Preact.bs.js(16KB)
--------Preact_Html.ml(23KB)
--------Preact_Svg.ml.erb(265B)
--------Preact_Event.bs.js(489B)
--------Preact.ml(122B)
--------Preact_Svg.ml(16KB)
--------Preact_Router.bs.js(7KB)
--------Preact_Html.bs.js(31KB)
--------Preact_Html.ml.erb(1012B)
--------Preact_Core.ml(5KB)
--------Preact_Router.ml(4KB)
--------Preact_Core.bs.js(4KB)
----bsconfig.json(556B)
----Rakefile(8KB)
----examples()
--------WindowSize.ml(1KB)
--------Toggle.ml(840B)
--------Context.ml(744B)
--------CustomHooks.ml(645B)
--------RouterRaw.ml(951B)
--------HelloWorldInReason.re(204B)
--------Counter.ml(615B)
--------HelloWorld.ml(209B)
--------CounterReducer.ml(760B)
--------AnimationFrame.ml(621B)
--------Router.ml(2KB)
--------Clock.ml(926B)
--------Form.ml(1KB)
--------Clicks.ml(1019B)
--------highlight.js(233B)
--------SvgClock.ml(2KB)
--------Rakefile(2KB)
--------CustomHooksInReason.re(717B)
--------Ref.ml(839B)
--------style.css(399B)
----README.md(6KB)
----ppx()
--------yarn.lock(1KB)
--------src()
--------bsconfig.json(324B)
--------Makefile(129B)
--------tests()
--------package.json(436B)
----tests()
--------Preact_Router_Test.ml(4KB)
--------Preact_Test.ml(119B)
----.gitignore(279B)
----package.json(1KB)