React JS / Redux Tutorial - 5 - Reducers

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

it needs `export default allReducers` in reducers/index.js if you're getting an expected function error.

TheSquirrel
Автор

Honestly, over the past several years, you have taught me everything I know about programming in various different languages. Thank you so much.

Mister-zvcz
Автор

Not to agree with GifCo by any means, but I think a clearer way to set this up would have been to define initial state as a const and call our userReducer(state = initialState, action) {} .... but you would have had to introduce an addUserReducer to demonstrate this and it was a little outside the scope of the tutorial. All in all I think GifCo should mellow out.

imnotdigginthis
Автор

reducer-users.js:

export default function() {
return [
{
id: 1,
first: "Bucky",
last: "Roberts",
age: 71,
description: "Bucky is a React Developer and YouTuber.",
},
{
id: 2,
first: "Joby",
last: "Wasilenko",
age: 27,
description: "Joby loves the Packers, cheese, and turtles.",
},
{
id: 3,
first: "Madison",
last: "Williams",
age: 24,
description: "Madi likes her dog but it is really annoying.",
},
]
}

deniskomarov
Автор

awesome explanation, stop banging the keyboard, no offence

charlesondavis
Автор

Will you do a video on React Redux and Django Rest Framework?

tushant
Автор

Really helpful intro to Redux but damn those heavy keystrokes are jarring.

swellfella
Автор

the keyboard sound is so annoying dislike

passableespresso
Автор

just wondering, in the reducer_users.js, it exports a function; so why when we import it into the allReducers, it suddenly became an array? Don't we have to invoke it first?

VK-fyit
Автор

dark mode makes it unreadable on my screen. maybe you were not aware of such an issue, but it is diffused.

DarioCangialosi
Автор

Hello Bucky, I have one question. Instead of a thumbnail is it possible to add a local image to the reducer from a /img file? If this is possible how would I go about it doing it? Thank you ~!

kevinlee
Автор

Nice example, but in a perfect world you make a real CRUD, thanks for your work.

valikonen
Автор

lol bucky ur old (age: 71), thanks for the series anyway

razinj
Автор

So what if I wanted data from an API to be in the reducer? So say I want to return data based on a user name?

DrSarge
Автор

Is it ok to create dynamic reducers? If so, how?

MrKiraBR
Автор

Can anybody suggest me where to find a good react tutorial using es5? Everywhere I am getting es6 only

arunkannath
Автор

Awesome Tutorial!

¿How can connect my Rest Api with react-redux?

Thanks!

jpmelnik
Автор

Looks like you are typing on a typewriter rather than a keyboard.

mpgrewal
Автор

Did Bucky deliver the data along the video?

hiepsikid
Автор

Dude, your voice reminds me so much of Randal from Clerks. hahaha. x

aidThompsin