react

2 articles

Using Create React App with Fable

Published

Tags

2019 has been a great year for me for all things F# related! I helped out with the organization of , gave a and was able to release . To wrap up the decade I'm writing this post as part of the . I had fun and I wish to continue this trend. has been receiving some traction in the community and at one-point Zaid asked me what I thought about it. My reply was, well it's not for everybody 😅. In this blog post I'm going to explore yet another alternative of creating views in Elmish, by using React as…

React hooks preview with Fable

Published

Tags

A couple of weeks ago Facebook presented , a new way of accessing React features inside functional components. In this blogpost I would like to show that the new hooks can easily be used in combination with . Disclaimer: Hooks are an experimental proposal to React, currently available in , and the api is not final yet. Use at your own risk. A first example of a hook is . When the hook is called, we receive a variable representing the state and a function to update the state. Example: Note that accepts a default value for the…