Learn Generative AI, Prompt Engineering, and LLMs for Free
Launch Your Cybersecurity Career in 6 Months
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This tutorial introduces RTK Query by building a React to-do CRUD app. It covers API slices, query and mutation hooks, cached data, tag-based cache invalidation, automatic refetching, and response transformation, and assumes prior React knowledge.
Syllabus
Intro
Welcome
Prerequisite knowledge
Project dependencies
React v18 index changes
JSON Server
App and TodoList components
Create an api slice
ApiProvider
Apply useGetTodosQuery in TodoList
Adding mutations to the slice
Apply mutation hooks in TodoList
Cached data
Tags, invalidating cache, and auto-refetching
Transforming the response
Taught by
Dave Gray