Let's start to tidy this up. First we'll add some styling. Hyperapp elements can take a style object, much like React, but for our simple styling purposes, we'll just add a stylesheet and some classes.
In Part 1, we introduced the basics of Hyperapp, and in Part 2, we did a rough sketch of the game of Hangman in code. But we're not going to win any awards just yet - the user can't actually do anything.
There’s a really nice way to get the pathname off URLs that aren’t the current window.location. If you set them as the href of an anchor element, the anchor element actually implements the same location Protocol as window.
Technology, for the most part, is becoming more usable. I’m writing this post on Medium, and it feels as good as my favourite Desktop word editor. Afterwards, I’ll mention this post in an email that I’ll send out painlessly via TinyLetter. I only had to type a few letters of the band I wanted to listen to into Spotify’s search, and they came up top of the list.