Redux Fundamentals (feat. React)

Async Thunk Data Fetch Exercise

Steve Kinney

Steve Kinney

Redux Fundamentals (feat. React)

Check out a free preview of the full Redux Fundamentals (feat. React) course

The "Async Thunk Data Fetch Exercise" Lesson is part of the full, Redux Fundamentals (feat. React) course featured in this preview video. Here's what you'd learn in this lesson:

Steve demonstrates how to add actions and actionCreators to state slices using hooks. The Redux Toolkit actions use a different syntax from Redux and automatically generates the action type based on the name field and the reducer action.


Transcript from the "Async Thunk Data Fetch Exercise" Lesson

>> So we'll do one more little exercise which is very similar, just kind of get our hands dirty. We've got this idea of fetching a series of dog facts. And so what we wanna do is just create our async func. We want to start out with the loading not present.

Put it up as we go ahead and try to get our dog facts. And then upon receiving our dog facts, we will go ahead and take down the loading and display however many dog facts that we need to display.

Learn Straight from the Experts Who Shape the Modern Web

  • In-depth Courses
  • Industry Leading Experts
  • Learning Paths
  • Live Interactive Workshops
Get Unlimited Access Now