Welcome Back Picshare

You have progressed nicely with this SPA. Next, you need to make your original Picshare application the public feed page. In this section, you will wire up Picshare as a component inside Main.elm. You will also add navigation links to the application.

To start, you need an existing Picshare application. There’s one in the files you copied at the start of this chapter. The file is named Feed.elm, and it exposes all you need to use it as a component. Also provided is the WebSocket.elm port module.

However, if you followed the first five chapters of this book and want a little challenge, copy your Picshare.elm and WebSocket.elm files into your picshare-spa/src directory. Rename Picshare.elm to Feed.elm. You might want to ...

Get Programming Elm now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.