Tag: react

Advanced ReasonReact: Higher Order Components

November
12,
2017
·
react,
reason

After jumping into ReasonReact, I soon came to the question "How do I do higher-order components?" I had some duplicated logic in several components regarding data fetching, and I wanted to use this familiar React tool to refactor.

To illustrate, we'll be making a "fetches something from the network" wrapper component. We'll start with a "mixed component" that we'll then try to refactor.

5 minute read

A ReasonReact Tutorial

July
5,
2017
·
react,
tutorial,
ocaml,
reason

Are you a big fan of React, and want to know more about Reason/OCaml? I made this for you!

This tutorial was updated on Nov 8, 2017 for the new "v3" syntax of Reason.

Reason is a project that adds a JavaScript-style syntax and a bunch of conventions and tooling to OCaml. The goal is to make this awesome language, with its powerful type system and robust multi-platform compiler, accessible to a broader audience. It's backed by the good folks at Facebook who invented and built React, and so naturally having best-in-class React interop has been a high priority.

This tutorial aims to give you a nice introduction to the syntax and type system of Reason, through the ReasonReact library. We'll be building a simple Todo list application.

Read more

Visualizing Reactive Streams: Hot and Cold Observables

March
6,
2015
·
react,
rxjs,
javascript

Reactive Programming is getting a lot of attention these days, and it promises to reduce frustration, bugs, and greenhouse gas emissions. Unfortunately, there's a sizeable learning curve involved while you try and get your head to think in streams instead of imperative sequential processes.

5 minute read

The Hexo static blogging engine gets an admin UI

July
26,
2014
·
blog,
announce,
react,
javascript

I recently switched from ghost to hexo, and the biggest thing missing for me was the editor interface. So I made one. Currently, it's mostly a clone of the Ghost interface, but I have some ideas for making it even more awesome.

1 minute read