[005.3] Introduction to Choo

Introduction to Choo
[12.21.2017]

Yesterday we introduced Bankai. It’s a friendly web compiler with some interesting tools included. We also mentioned Choo, a JavaScript framework.

A quick overview

We will start our project from the tag in the last episode. In that episode, we copied the counter made in Choo to our project, just to get something working. Now, it's time take a look at the counter, and try to understand it.

vim index.js

So, here is the code from the counter. We will walk through each piece.

Routing with Choo is simple. We are using the route method, passing the route name and the handler of this route. The handler is a function that receives the state and emit. We will use the state and emit when creating our views.

sign up for full access

Meet your expert

Software Engineer with experience working in multi-cultural teams, Franze wants to help people when he can, and he is passionate about programming and Computer Science. Founder of RemoteMeetup.com where he can meet people all over the World. When Franze is not coding, he is studying something about programming.