Feliz 2.6.0

.NET Standard 2.0
dotnet add package Feliz --version 2.6.0
NuGet\Install-Package Feliz -Version 2.6.0
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="Feliz" Version="2.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Feliz --version 2.6.0
#r "nuget: Feliz, 2.6.0"
#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 Feliz as a Cake Addin
#addin nuget:?package=Feliz&version=2.6.0

// Install Feliz as a Cake Tool
#tool nuget:?package=Feliz&version=2.6.0

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!

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. 
.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)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (106)

Showing the top 5 NuGet packages that depend on Feliz:

Package Downloads
Feliz.Router

A router component for React and Elmish that is focused, powerful and extremely easy to use.

Feliz.UseListener

React hooks for easy event listener management.

Feliz.Bulma

Bulma wrapper for amazing Feliz DSL

Feliz.UseDeferred

Hooks for dead-simple data fetching with Feliz

Feliz.Recharts

Recharts bindings based on the Feliz API

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.6.0 17,874 3/21/2023
2.5.0 412 3/18/2023
2.4.1 2,810 2/23/2023
2.4.0 7,406 1/14/2023
2.3.0 4,329 12/27/2022
2.2.0 245 12/27/2022
2.1.0 260 12/27/2022
2.0.1 334 12/25/2022
2.0.0 1,762 12/25/2022
2.0.0-prerelease-003 4,799 9/16/2022
2.0.0-prerelease-002 1,025 9/1/2022
2.0.0-prerelease-001 112 8/26/2022
1.68.0 30,547 8/17/2022
1.67.0 6,939 8/5/2022
1.66.0 1,822 8/3/2022
1.65.0 16,858 7/9/2022
1.64.0 16,752 5/9/2022
1.63.0 623 5/9/2022
1.62.0 19,068 4/19/2022
1.61.0 19,682 3/12/2022
1.60.0 1,149 3/5/2022
1.59.0 10,823 2/24/2022
1.58.1 6,394 2/10/2022
1.58.0 1,128 2/3/2022
1.57.0 21,761 11/29/2021
1.56.0 3,416 11/8/2021
1.55.0 6,131 11/5/2021
1.54.0 3,184 10/24/2021
1.53.0 3,456 10/2/2021
1.52.0 9,041 9/10/2021
1.51.0 8,693 8/17/2021
1.50.0 2,466 8/8/2021
1.49.0 19,841 7/7/2021
1.48.0 405 7/7/2021
1.47.0 16,502 6/13/2021
1.46.0 1,827 6/8/2021
1.45.0 8,719 5/13/2021
1.44.0 1,494 5/3/2021
1.43.0 5,716 4/16/2021
1.42.0 1,439 4/10/2021
1.41.0 695 4/8/2021
1.40.1 3,744 3/30/2021
1.40.0 1,995 3/24/2021
1.39.0 416 3/24/2021
1.38.0 1,144 3/17/2021
1.37.0 4,747 3/8/2021
1.36.0 495 3/6/2021
1.35.0 1,082 2/28/2021
1.34.0 1,533 2/21/2021
1.33.1 13,081 2/21/2021
1.33.0 3,263 2/4/2021
1.32.0 16,057 12/27/2020
1.31.1 1,103 12/22/2020
1.31.0 643 12/22/2020
1.30.0 396 12/22/2020
1.29.0 1,853 12/15/2020
1.28.0 18,129 12/15/2020
1.27.0 575 12/13/2020
1.25.0 624 12/12/2020
1.24.0 1,050 12/10/2020
1.23.0 418 12/10/2020
1.22.1 456 12/10/2020
1.22.0 5,307 12/2/2020
1.21.0 570 12/2/2020
1.20.0 928 11/27/2020
1.19.0 422 11/26/2020
1.18.0 1,040 11/26/2020
1.17.0 8,964 11/15/2020
1.16.2 2,231 11/1/2020
1.16.1 541 10/30/2020
1.16.0 5,939 10/23/2020
1.15.0 835 10/23/2020
1.14.1 4,023 10/19/2020
1.14.0 4,406 9/19/2020
1.13.2 1,423 9/16/2020
1.13.1 10,888 9/1/2020
1.13.0 3,892 8/16/2020
1.12.1 1,201 8/10/2020
1.12.0 932 8/9/2020
1.11.0 1,638 8/8/2020
1.10.1 1,226 7/30/2020
1.10.0 515 7/29/2020
1.9.0 496 7/29/2020
1.8.0 563 7/29/2020
1.7.0 1,929 7/16/2020
1.6.0 7,897 7/3/2020
1.5.0 9,453 6/24/2020
1.4.0 544 6/24/2020
1.3.0 11,743 6/7/2020
1.2.0 2,577 6/4/2020
1.1.1 7,243 5/24/2020
1.1.0 3,466 5/21/2020
1.0.0 2,848 5/16/2020
0.86.0 3,130 5/9/2020
0.85.0 1,409 5/7/2020
0.84.0 646 5/4/2020
0.83.0 2,248 5/4/2020
0.82.0 591 5/3/2020
0.81.0 939 4/30/2020
0.80.0 613 4/28/2020
0.79.0 486 4/28/2020
0.78.0 1,277 4/27/2020
0.77.0 490 4/26/2020
0.76.0 1,212 4/26/2020
0.75.0 2,465 4/22/2020
0.74.2 5,626 4/20/2020
0.74.1 3,107 4/12/2020
0.74.0 3,733 3/29/2020
0.73.0 1,461 3/26/2020
0.72.0 5,470 3/22/2020
0.71.0 1,343 3/20/2020
0.70.0 2,225 3/17/2020
0.69.0 1,538 3/12/2020
0.68.10 5,587 12/10/2019
0.68.9 3,684 12/5/2019
0.68.8 1,282 12/5/2019
0.68.7 2,054 12/4/2019
0.68.6 1,282 12/1/2019
0.68.5 1,271 11/29/2019
0.68.3 3,543 11/27/2019
0.68.2 6,489 11/18/2019
0.68.1 1,217 11/18/2019
0.68.0 3,500 11/14/2019
0.67.2 1,961 11/13/2019
0.67.1 1,333 11/4/2019
0.67.0 1,544 11/4/2019
0.66.5 1,227 11/3/2019
0.66.4 1,053 11/3/2019
0.66.3 1,173 11/1/2019
0.66.2 1,099 11/1/2019
0.66.1 2,014 10/31/2019
0.66.0 1,361 10/30/2019
0.65.5 1,123 10/29/2019
0.65.4 1,155 10/28/2019
0.65.3 1,155 10/28/2019
0.65.2 998 10/27/2019
0.65.1 948 10/27/2019
0.65.0 1,256 10/27/2019
0.64.0 963 10/27/2019
0.63.0 1,300 10/22/2019
0.62.0 878 10/21/2019
0.61.0 817 10/21/2019
0.60.0 531 10/20/2019
0.59.0 976 10/20/2019
0.58.0 2,030 10/14/2019
0.57.2 1,013 10/12/2019
0.57.1 855 10/10/2019
0.57.0 1,373 10/8/2019
0.56.0 1,185 10/6/2019
0.55.0 536 10/6/2019
0.54.0 724 10/6/2019
0.53.0 953 10/5/2019
0.52.0 792 9/14/2019
0.51.0 540 9/14/2019
0.50.0 547 9/10/2019
0.49.0 580 9/9/2019
0.48.0 582 9/9/2019
0.47.0 828 8/31/2019
0.46.0 959 8/28/2019
0.45.0 567 8/28/2019
0.44.0 528 8/27/2019
0.42.0 575 8/26/2019
0.41.0 597 8/19/2019
0.40.0 1,035 8/13/2019
0.39.0 586 8/13/2019
0.38.0 638 8/5/2019
0.37.0 588 8/5/2019
0.36.0 595 7/31/2019
0.35.0 635 7/29/2019
0.34.0 591 7/28/2019
0.33.0 568 7/28/2019
0.32.0 608 7/28/2019
0.31.0 590 7/28/2019
0.30.0 595 7/27/2019
0.29.0 551 7/26/2019
0.28.0 565 7/26/2019
0.27.0 591 7/26/2019
0.26.0 566 7/26/2019
0.25.0 580 7/26/2019
0.24.0 580 7/25/2019
0.23.0 577 7/25/2019
0.22.0 570 7/25/2019
0.20.0 549 7/25/2019
0.19.0 565 7/25/2019
0.18.0 573 7/24/2019
0.17.0 557 7/24/2019
0.16.0 595 7/23/2019
0.15.0 558 7/22/2019
0.14.0 563 7/22/2019
0.13.0 559 7/22/2019
0.12.0 594 7/22/2019
0.11.0 547 7/22/2019
0.10.1 552 7/22/2019
0.10.0 585 7/22/2019
0.9.0 574 7/22/2019
0.8.0 583 7/22/2019
0.7.0 560 7/22/2019
0.6.0 597 7/22/2019
0.5.0 564 7/21/2019
0.4.0 535 7/21/2019
0.3.0 543 7/21/2019
0.2.0 568 7/21/2019
0.1.0 603 7/21/2019

Update Feliz.CompilerPlugins to remove redundant declaration of imported React component