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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access