Feliz 2.0.0-prerelease-003

This is a prerelease version of Feliz.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Feliz --version 2.0.0-prerelease-003                
NuGet\Install-Package Feliz -Version 2.0.0-prerelease-003                
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.0.0-prerelease-003" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Feliz --version 2.0.0-prerelease-003                
#r "nuget: Feliz, 2.0.0-prerelease-003"                
#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.0.0-prerelease-003&prerelease

// Install Feliz as a Cake Tool
#tool nuget:?package=Feliz&version=2.0.0-prerelease-003&prerelease                

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

ReactDOM.render(Counter(), document.getElementById "root")

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.

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.  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 (127)

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.9.0 3,568 10/26/2024
2.8.0 13,995 6/22/2024
2.8.0-beta.0 3,031 12/25/2023
2.7.0 31,281 10/8/2023
2.6.0 49,902 3/21/2023
2.5.0 514 3/18/2023
2.4.1 4,146 2/23/2023
2.4.0 10,494 1/14/2023
2.3.0 9,840 12/27/2022
2.2.0 341 12/27/2022
2.1.0 329 12/27/2022
2.0.1 464 12/25/2022
2.0.0 3,834 12/25/2022
2.0.0-prerelease-003 6,290 9/16/2022
2.0.0-prerelease-002 4,405 9/1/2022
2.0.0-prerelease-001 185 8/26/2022
1.68.0 47,350 8/17/2022
1.67.0 8,610 8/5/2022
1.66.0 1,939 8/3/2022
1.65.0 23,626 7/9/2022
1.64.0 17,690 5/9/2022
1.63.0 721 5/9/2022
1.62.0 26,414 4/19/2022
1.61.0 27,010 3/12/2022
1.60.0 1,272 3/5/2022
1.59.0 12,434 2/24/2022
1.58.1 6,953 2/10/2022
1.58.0 1,216 2/3/2022
1.57.0 25,973 11/29/2021
1.56.0 3,763 11/8/2021
1.55.0 11,840 11/5/2021
1.54.0 3,473 10/24/2021
1.53.0 3,641 10/2/2021
1.52.0 9,851 9/10/2021
1.51.0 8,852 8/17/2021
1.50.0 2,789 8/8/2021
1.49.0 20,056 7/7/2021
1.48.0 493 7/7/2021
1.47.0 18,723 6/13/2021
1.46.0 1,994 6/8/2021
1.45.0 10,461 5/13/2021
1.44.0 1,723 5/3/2021
1.43.0 6,121 4/16/2021
1.42.0 1,524 4/10/2021
1.41.0 831 4/8/2021
1.40.1 4,792 3/30/2021
1.40.0 2,260 3/24/2021
1.39.0 489 3/24/2021
1.38.0 1,302 3/17/2021
1.37.0 4,867 3/8/2021
1.36.0 558 3/6/2021
1.35.0 1,202 2/28/2021
1.34.0 1,687 2/21/2021
1.33.1 16,418 2/21/2021
1.33.0 3,400 2/4/2021
1.32.0 17,186 12/27/2020
1.31.1 1,249 12/22/2020
1.31.0 730 12/22/2020
1.30.0 499 12/22/2020
1.29.0 2,025 12/15/2020
1.28.0 23,650 12/15/2020
1.27.0 641 12/13/2020
1.25.0 705 12/12/2020
1.24.0 1,121 12/10/2020
1.23.0 485 12/10/2020
1.22.1 535 12/10/2020
1.22.0 5,743 12/2/2020
1.21.0 681 12/2/2020
1.20.0 1,058 11/27/2020
1.19.0 506 11/26/2020
1.18.0 1,113 11/26/2020
1.17.0 11,702 11/15/2020
1.16.2 3,087 11/1/2020
1.16.1 619 10/30/2020
1.16.0 6,027 10/23/2020
1.15.0 974 10/23/2020
1.14.1 4,653 10/19/2020
1.14.0 4,603 9/19/2020
1.13.2 1,595 9/16/2020
1.13.1 13,200 9/1/2020
1.13.0 4,517 8/16/2020
1.12.1 1,283 8/10/2020
1.12.0 1,091 8/9/2020
1.11.0 2,245 8/8/2020
1.10.1 1,311 7/30/2020
1.10.0 604 7/29/2020
1.9.0 578 7/29/2020
1.8.0 626 7/29/2020
1.7.0 2,511 7/16/2020
1.6.0 8,696 7/3/2020
1.5.0 12,697 6/24/2020
1.4.0 633 6/24/2020
1.3.0 17,472 6/7/2020
1.2.0 4,106 6/4/2020
1.1.1 10,568 5/24/2020
1.1.0 4,978 5/21/2020
1.0.0 3,262 5/16/2020
0.86.0 4,294 5/9/2020
0.85.0 1,953 5/7/2020
0.84.0 732 5/4/2020
0.83.0 3,147 5/4/2020
0.82.0 658 5/3/2020
0.81.0 1,072 4/30/2020
0.80.0 675 4/28/2020
0.79.0 569 4/28/2020
0.78.0 1,465 4/27/2020
0.77.0 569 4/26/2020
0.76.0 1,415 4/26/2020
0.75.0 3,353 4/22/2020
0.74.2 5,740 4/20/2020
0.74.1 4,255 4/12/2020
0.74.0 6,181 3/29/2020
0.73.0 1,641 3/26/2020
0.72.0 5,767 3/22/2020
0.71.0 1,533 3/20/2020
0.70.0 2,421 3/17/2020
0.69.0 1,746 3/12/2020
0.68.10 6,166 12/10/2019
0.68.9 3,940 12/5/2019
0.68.8 1,472 12/5/2019
0.68.7 2,330 12/4/2019
0.68.6 1,481 12/1/2019
0.68.5 1,452 11/29/2019
0.68.3 3,890 11/27/2019
0.68.2 7,218 11/18/2019
0.68.1 1,392 11/18/2019
0.68.0 3,996 11/14/2019
0.67.2 2,256 11/13/2019
0.67.1 1,546 11/4/2019
0.67.0 1,741 11/4/2019
0.66.5 1,408 11/3/2019
0.66.4 1,192 11/3/2019
0.66.3 1,377 11/1/2019
0.66.2 1,269 11/1/2019
0.66.1 2,344 10/31/2019
0.66.0 1,544 10/30/2019
0.65.5 1,311 10/29/2019
0.65.4 1,353 10/28/2019
0.65.3 1,311 10/28/2019
0.65.2 1,130 10/27/2019
0.65.1 1,049 10/27/2019
0.65.0 1,397 10/27/2019
0.64.0 1,096 10/27/2019
0.63.0 1,474 10/22/2019
0.62.0 981 10/21/2019
0.61.0 917 10/21/2019
0.60.0 643 10/20/2019
0.59.0 1,113 10/20/2019
0.58.0 2,303 10/14/2019
0.57.2 1,144 10/12/2019
0.57.1 951 10/10/2019
0.57.0 1,564 10/8/2019
0.56.0 1,310 10/6/2019
0.55.0 622 10/6/2019
0.54.0 830 10/6/2019
0.53.0 1,066 10/5/2019
0.52.0 888 9/14/2019
0.51.0 626 9/14/2019
0.50.0 634 9/10/2019
0.49.0 664 9/9/2019
0.48.0 651 9/9/2019
0.47.0 961 8/31/2019
0.46.0 1,087 8/28/2019
0.45.0 639 8/28/2019
0.44.0 611 8/27/2019
0.42.0 657 8/26/2019
0.41.0 676 8/19/2019
0.40.0 1,190 8/13/2019
0.39.0 669 8/13/2019
0.38.0 692 8/5/2019
0.37.0 667 8/5/2019
0.36.0 709 7/31/2019
0.35.0 726 7/29/2019
0.34.0 681 7/28/2019
0.33.0 655 7/28/2019
0.32.0 690 7/28/2019
0.31.0 657 7/28/2019
0.30.0 681 7/27/2019
0.29.0 635 7/26/2019
0.28.0 648 7/26/2019
0.27.0 657 7/26/2019
0.26.0 641 7/26/2019
0.25.0 667 7/26/2019
0.24.0 631 7/25/2019
0.23.0 658 7/25/2019
0.22.0 654 7/25/2019
0.20.0 635 7/25/2019
0.19.0 646 7/25/2019
0.18.0 645 7/24/2019
0.17.0 641 7/24/2019
0.16.0 677 7/23/2019
0.15.0 641 7/22/2019
0.14.0 649 7/22/2019
0.13.0 648 7/22/2019
0.12.0 668 7/22/2019
0.11.0 613 7/22/2019
0.10.1 639 7/22/2019
0.10.0 673 7/22/2019
0.9.0 638 7/22/2019
0.8.0 649 7/22/2019
0.7.0 647 7/22/2019
0.6.0 682 7/22/2019
0.5.0 649 7/21/2019
0.4.0 618 7/21/2019
0.3.0 603 7/21/2019
0.2.0 655 7/21/2019
0.1.0 738 7/21/2019

Inject React import for components and depend on Fable.React.Types