Hook Tutorial

WARNING! v0.13 was just released, and the tutorial is currently undergoing final testing. It's recommended that you DO NOT follow along until this message is removed (please check back tomorrow).

A tutorial for learning to create your own hooks

Overview

Creating your own hooks for Lore is a great way to expand or modify the functionality provided by the framework, and this tutorial will teach you how to do that.

To illustrate the process we're going to be using the application below, which displays a list of tweets. In this tutorial, we're going to implement a custom hook that provide basic polling behavior (repeatedly making an API call on a given interval) so that we can keep the data in sync across multiple browser tabs as we create and edit tweets.

Next Steps

Ready? Let's get started!