Feliz.Recoil
Fable bindings in Feliz style for Facebook's experimental state management library recoil.
Install / Use
/learn @Shmew/Feliz.RecoilREADME
Feliz.Recoil 
Fable bindings in Feliz style for Facebook's experimental state management library recoil.
A great intro to the library can be found here.
A quick look:
open Feliz
open Feliz.Recoil
let textState = Recoil.atom("textState", "Hello world!")
let vowels = [ 'a'; 'e'; 'i'; 'o'; 'u' ]
let textStateTransform =
Recoil.selector(fun getter ->
getter.get(textState)
|> String.filter(fun v -> List.contains v vowels)
)
let inner = React.functionComponent(fun () ->
let setAtomText = Recoil.useSetState(textState)
let text = Recoil.useValue(textStateTransform)
Html.div [
Html.div [
prop.text (sprintf "Transformed value: %s" text)
]
Html.input [
prop.type'.text
prop.onTextChange setAtomText
]
])
let otherInner = React.functionComponent(fun () ->
let textAtom = Recoil.useValue(textState)
Html.div [
prop.text (sprintf "Atom current value: %s" textAtom)
])
let render = React.functionComponent(fun () ->
Recoil.root [
inner()
otherInner()
])
Full documentation with live examples can be found here.
Related Skills
node-connect
349.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.7kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
