illustration for Create an Optimistic UI in React with SWR
pro

Create an Optimistic UI in React with SWR

Instructor

Sam Selikoff

15m closed-captioning
·
4 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.5
106
people completed
Published 5 years ago
|
Updated 5 years ago

Vercel's data-fetching library SWR features a client-side cache. Learn how to use the mutate hook to manipulate this cache in order to optimistically update your UI without waiting for a response from the network.

Learn more about SWR here: https://github.com/zeit/swr