Skip to content

Instantly share code, notes, and snippets.

@OnurGumus
OnurGumus / adaptive_demo.fs
Created August 13, 2020 19:23 — forked from pkese/adaptive_demo.fs
FSharp.Data.Adaptive sample with React
module AdaptiveSample
open Fable.React
open Fable.React.Props
open FSharp.Data.Adaptive
let useAdaptive (v: aval<'T>) =
// initialize hook with initial value
let stateHook = Hooks.useState (AVal.force v)
let onChange () =