This was created for the 17th meetup of the React Meetup Leipzig.
After talking about RTKQuery in the previous meetup, I wanted to provide a meaningful yet easy to get into 'Hands-On' introduction to rtk-query.
That's what this repo is there for.
First of all you should get everything ready:
npm i
npm run dev
There are multiple exercises in the src/exercises
folder. Just look into each file in each individual folder and work through the listed TODOs :)
Don't overdo it, easy solutions are perfectly sufficient.
You will probably need to look at the rtk-query docs constantly.
In case you are struggling or you simply want to verify your approach, feel free to look into the provided src/solutions
folder :)
It uses the freely accessible restful-api as a target endpoint to actually make requests.
The whole project was created using vite.