Feliz.Template 5.0.0-rc.1

This is a prerelease version of Feliz.Template.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet new install Feliz.Template::5.0.0-rc.1
                    
This package contains a .NET Template Package you can call from the shell/command line.

Feliz Nuget Build status

A fresh retake of the React API in Fable, optimized for happiness.

Here is how it looks like:

module App

open Feliz

[<ReactComponent>]
let Counter() =
    let (count, setCount) = React.useState(0)
    Html.div [
        Html.button [
            prop.style [ style.marginRight 5 ]
            prop.onClick (fun _ -> setCount(count + 1))
            prop.text "Increment"
        ]

        Html.button [
            prop.style [ style.marginLeft 5 ]
            prop.onClick (fun _ -> setCount(count - 1))
            prop.text "Decrement"
        ]

        Html.h1 count
    ]

open Browser.Dom

let root = ReactDOM.createRoot(document.getElementById "root")
root.render(Counter())

Features

  • Consistent, lightweight formatting: no more awkward indentation using two lists for every element.
  • Discoverable attributes with no more functions, Html attributes or css properties globally available so they are easy to find.
  • Proper documentation: each attribute and CSS property
  • Full React API support: Feliz aims to support the React API for building components using hooks, context and more.
  • Fully Type-safe: no more Margin of obj but instead utilizing a plethora of overloaded functions to account for the overloaded nature of CSS attributes, covering 90%+ of the CSS styles, values and properties.
  • Included color list of most commonly used Html colors in the colors module.
  • Compatible with the current React DSL used in applications.
  • Compatible with Femto.
  • Approximately Zero bundle size increase where everything function body is erased from the generated javascript unless you actually use said function.

Quick Start

dotnet new -i Feliz.Template
dotnet new feliz -n MyProject
cd MyProject
npm install
npm start

Documentation

Feliz has extensive documentation at https://zaid-ajaj.github.io/Feliz with live examples along side code samples, check them out and if you have any question, let us know!

  • .NETStandard 2.0

    • No dependencies.

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
5.0.0-rc.5 351 11/18/2025
5.0.0-rc.4 349 11/18/2025
5.0.0-rc.3 161 10/7/2025
5.0.0-rc.2 161 10/7/2025
5.0.0-rc.1 135 10/3/2025
4.5.0 2,912 3/21/2023
4.4.0 422 3/18/2023
4.3.0 541 2/27/2023
4.2.0 471 2/23/2023
4.1.0 439 2/23/2023
4.0.0 431 2/23/2023
3.17.0 1,280 8/3/2022
3.16.0 1,837 11/29/2021
3.15.0 1,190 11/29/2021
3.14.0 838 10/2/2021
3.13.0 681 9/10/2021
3.12.0 1,078 8/17/2021
3.11.0 825 8/8/2021
3.10.0 2,174 5/13/2021
3.9.0 695 4/10/2021
3.8.0 610 4/1/2021
3.7.0 639 3/24/2021
3.6.0 596 3/18/2021
3.5.0 588 3/17/2021
3.4.0 628 3/12/2021
3.3.1 650 3/12/2021
3.3.0 603 3/11/2021
3.2.0 585 3/9/2021
3.1.0 618 3/8/2021
3.0.0 951 12/16/2020
2.7.0 1,026 8/16/2020
2.6.0 699 8/8/2020
2.5.0 807 6/29/2020
2.4.0 760 6/26/2020
2.3.0 773 6/23/2020
2.2.0 742 6/8/2020
2.1.0 815 5/24/2020
2.0.0 785 5/16/2020
1.9.0 765 5/4/2020
1.8.0 734 4/27/2020
1.7.0 747 4/26/2020
1.6.0 756 4/22/2020
1.5.0 770 3/29/2020
1.4.0 780 3/26/2020
1.3.0 743 3/22/2020
1.2.0 757 3/20/2020
1.1.0 775 3/17/2020
1.0.0 790 3/12/2020
0.2.28 779 3/11/2020
0.2.27 765 3/10/2020
0.2.26 902 12/5/2019
0.2.25 803 12/5/2019
0.2.24 795 12/4/2019
0.2.23 799 12/1/2019
0.2.22 780 11/29/2019
0.2.20 792 11/27/2019
0.2.19 783 11/18/2019
0.2.18 759 11/18/2019
0.2.17 758 11/14/2019
0.2.16 762 11/13/2019
0.2.15 797 11/6/2019
0.2.14 800 11/4/2019
0.2.13 783 11/3/2019
0.2.12 789 11/3/2019
0.2.11 790 11/1/2019
0.2.10 782 11/1/2019
0.2.9 759 10/31/2019
0.2.8 789 10/30/2019
0.2.7 780 10/29/2019
0.2.6 783 10/28/2019
0.2.5 781 10/28/2019
0.2.4 783 10/27/2019
0.2.3 761 10/27/2019
0.2.2 789 10/27/2019
0.2.1 795 10/27/2019
0.2.0 799 10/26/2019
0.1.1 789 10/26/2019
0.1.0 799 10/26/2019

### Changed

- Update to latest Feliz version