Enhancing the User Experience
Remix enables us to build applications with progressive enhancement in mind. In Remix, enhancing the user experience can be achieved by making additive changes. This allows us to follow a simple step-by-step process to build our applications.
In Chapter 5, Fetching and Mutating Data, we added data loading and mutations to our BeeRich application. When building out the create expense form, we first implemented the UI to work without JavaScript and then enhanced the browser’s default behavior with JavaScript. By doing so, we progressively enhanced the experience.
In this chapter, we’ll cover the following topics:
- Understanding progressive enhancement
- Prefetching data
- Working with action data
- Handling concurrent mutations
First, we will formalize how progressive enhancement works in Remix. After that, we will focus on advanced data loading and mutation topics, including how to prefetch loader data and assets...