A fresh retake of the React API in Fable and a collection of high-quality components to build React applications in F#, optimized for happiness
A fresh retake of the React API in Fable, optimized for happiness.
Here is how it looks like:
 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 ]
ReactDOM.render(Counter(), document.getElementById "root")
Htmlattributes or css properties globally available so they are easy to find.
Margin of objbut instead utilizing a plethora of overloaded functions to account for the overloaded nature of
CSSattributes, covering 90%+ of the CSS styles, values and properties.
Htmlcolors in the
Documentation on the improvements implemented in Feliz with respect to Fable 3 are currently WIP! Please hold tight until we update it and publish a migration guide.
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!