© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. LibbyPractical Sveltehttps://doi.org/10.1007/978-1-4842-7374-6_5

5. Managing Events

Alex Libby1  

So far, we’ve constructed the bare bones of our site, added data, and started to implement state and some form of controlling logic – it’s time to step it up and allow people to interact with our website.

Interacting with a website will, of course, create different events – we need to respond to them accordingly so that the website can continue to function correctly. It might even be as simple as clicking a button to something more complex such as logging into a website. For this chapter, we will start to add some simple events to the demo website ...

Get Practical Svelte: Create Performant Applications with the Svelte Component Framework 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.