This tutorial teaches you what you need to know to:
- Build React applications using Starbeam
- Build reusable Starbeam code that you could use in React or any other framework with a Starbeam renderer.
- Getting Started: Build a simple counter using
- Reactive Builtins: Learn how to use
- Reactive Arrays: Learn how to use
reactive.arrayto create a reactive array. We'll update our counters to use an array to store their state.
- Reactive Arrays Bonus: This bonus lesson builds on the reactive arrays lesson to add support for an arbitrary number of counters, and a way to add new counters.
- Custom Reactive Objects: Learn how to create your own reactive objects. We'll create a reactive object that stores the state of a counter, and use it in our counter component.
- Resources: Learn how to create custom reactive objects that need to be cleaned up when they're no longer needed. In this example, we'll switch gears and build a simple component that shows a clock that updates every second. Under the hood, it will use a
Clockresource that will keeps itself up to date using a
setInterval, and automatically clean itself up when the component is unmounted. Buckle in, this is where it starts to get interesting!