O'Reilly logo

Programming Elm by Jeremy Fairbank

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required