kaeedo / MinimalFableDemo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimal Fable Demo using Preact and Preact-Compat

The master branch is the finished version with Preact and the aliases in the webpack config set. Switch over to the react branch to see the version using react.

To run locally, simply issue the following commands in the root after cloning

npm install

npm start


To build a production bundle, run npm run build and then use something like dotnet serve to serve the bundle from the deploy directory

Or, view the Preact version here https://kaeedo.github.io/MinimalFableDemo/

Or, view the React version here https://kaeedo.github.io/DemoFableReact/


It uses Fable 2.1, which doesn't require a separate fable deamon to be started via dotnet fable anymore. Instead webpack starts a fable compiler to compile F# to JS.

About


Languages

Language:F# 51.5%Language:JavaScript 45.6%Language:HTML 2.7%Language:SCSS 0.2%