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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.