Vide.Fable 0.0.1-alpha-06

Suggested Alternatives

Vide.UI.Fable

Additional Details

This package has renamed to Vide.UI.Fable for ongoing development and maintenance.

This is a prerelease version of Vide.Fable.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Vide.Fable --version 0.0.1-alpha-06
NuGet\Install-Package Vide.Fable -Version 0.0.1-alpha-06
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vide.Fable" Version="0.0.1-alpha-06" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vide.Fable --version 0.0.1-alpha-06
#r "nuget: Vide.Fable, 0.0.1-alpha-06"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Vide.Fable as a Cake Addin
#addin nuget:?package=Vide.Fable&version=0.0.1-alpha-06&prerelease

// Install Vide.Fable as a Cake Tool
#tool nuget:?package=Vide.Fable&version=0.0.1-alpha-06&prerelease

Vide

Vide is a declarative view library written in F#. It implements a core that can be used in various application frameworks. It currently uses Fable (❤).

Vide is in an early prototype state, and it may be that many things you read here will already be obsolete!

The prototype implements the core, a Fable API, and a Fable app that demos several use cases.

The basic idea (composing state-aware functions) is described in the contribution to the 2019s 'Applied F# Challenge'.

Requirements

Building and running the app

  • Install dependencies: npm install
  • Start the compiler in watch mode and a development server: npm start
  • After the first compilation is finished, in your browser open: http://localhost:3000/

Any modification you do to the F# code will be reflected in the web page after saving.

Note: check the "scripts" section in package.json to see the commands triggered by the steps above.

Samples

All samples shown here can be executed in the branch demos/public01

Given the index.html with an "app" container and a script tag for app kickoff:

<body>
  <div id="app"></div>
  <script type="module" src="./build/app.js"></script>
</body>

In app.fs, you will find variouse samples, including the famous "Counter"-Sample, known from various frameworks:

let videApp =
    vide {
        let! count = Mutable.ofValue 0

        div {
            $"Count = {count.Value}"
        }

        button .onclick(fun _ -> count -= 1) { "dec" }
        button .onclick(fun _ -> count += 1) { "inc" }
    }

Also in app.fs, start the app by hosting it in the app-div:

let appHolder = document.getElementById("app")
let videMachine = Vide.Fable.startApp appHolder videApp (fun sender state -> ())
videMachine.Eval()

Counter Sample

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.16 365 5/8/2023
0.0.15 254 4/29/2023
0.0.14 294 4/29/2023
0.0.13 258 4/23/2023
0.0.12 294 4/23/2023
0.0.11 264 4/23/2023
0.0.10 235 4/23/2023
0.0.9 254 4/23/2023
0.0.8 260 4/8/2023
0.0.7 294 4/8/2023
0.0.6 266 4/8/2023
0.0.5 268 4/8/2023
0.0.4 298 4/8/2023
0.0.3 332 3/27/2023
0.0.2 282 3/27/2023
0.0.1 319 3/27/2023
0.0.1-alpha-23 219 1/22/2023
0.0.1-alpha-22 226 1/22/2023
0.0.1-alpha-21 234 1/22/2023
0.0.1-alpha-20 245 1/22/2023
0.0.1-alpha-19 208 1/22/2023
0.0.1-alpha-18 221 1/22/2023
0.0.1-alpha-17 218 1/15/2023
0.0.1-alpha-16 219 1/15/2023
0.0.1-alpha-15 218 1/13/2023
0.0.1-alpha-14 248 1/13/2023
0.0.1-alpha-13 213 1/13/2023
0.0.1-alpha-12 217 1/13/2023
0.0.1-alpha-11 216 1/13/2023
0.0.1-alpha-10 213 1/13/2023
0.0.1-alpha-09 220 1/11/2023
0.0.1-alpha-08 223 1/11/2023
0.0.1-alpha-07 251 1/11/2023
0.0.1-alpha-06 223 1/11/2023
0.0.1-alpha-05 236 1/11/2023
0.0.1-alpha-04 238 1/11/2023
0.0.1-alpha-03 220 1/11/2023
0.0.1-alpha-02 221 1/11/2023
0.0.1-alpha-01 226 1/11/2023