This is an early prototype to compile F# to JSX in order to use a Feliz-like HTML API with SolidJS.
- Use zero-install yarn
- Break up
Components.fs
into separate component files. - Indent with 2 spaces
- Use of
Match
instead ofSolid.Match
-
JSX elements need to be solved at compile time so it's not possible to use list generators for HTML attributes or children.
-
Requires Fable 4 Snake Island (currently in alpha)
Yarn zero-install, no setup needed. If error, install yarn per https://yarnpkg.com/getting-started/install and run yarn add
.
yarn init -2
(per instruction) will overwrites package.json, so make a copy of it first if need to do this.
yarn start // To watch & run
yarn add pkg-name // -D for dev only dep
yarn remove pkg-name