[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –

React JS / Redux Tutorial – 7 – mapStateToProps
by
Tags:
Comments
27 responses to “React JS / Redux Tutorial – 7 – mapStateToProps”
-
I love your teaching. You are such a awesome teacher
-
HAHA Lazy Bucky…you could have separated containers and components
-
Thank you!!! I really appreciate this!
-
Thanks Bucky Bacon 🙂
-
the best tutorial for react-redux
I advise you follow the lessons from the beginning
-
WTF, show us how to use the 'user' in the component? I cannot get it to work at all.
-
Components exported to the containers
-
hm, why do you not need to this.createListItems = this.createListItems.bind(this); ? Is this something you don't need to do when you don't have stateful components?
-
I give you "props" from France ! #GeekJoke #ReadOnlyJoke
-
That first sentence xD
An I'm even a freakin Kraut! Thanks for the callout xD -
Hi Bucky and many thanks for the awesome tutorials, fun and very helpful
one question here :
I don't get how what seems to me to be the container (App) of the different components is actually in the "component" folder while what seems to me to be the components (like the user lists "class UserList extends Component" ) are in the "container" folder. I understand the logic of the diagram but not the way its applied here ! -
I love you Bucky Lasek, you are a good skateboarder too.
-
Really like your humorous way of explaining technology, which makes this piece of cold knowledge way more warm and interesting!
-
Thank you – this is so kick ass
-
connect(mapStateToProps)(UserList) is a curried function. It takes UserList component and decorates it with props and for the values of props, it uses mapping from the mapStateToProps function.
Notice we export this newly decorated component not the component itself.
When called in connect function, mapStateToProps gets the state from Provider component. Remember we supplied store={store} prop in Provider component. store.getState() is the very same state mapStateToProps function uses.
-
Where can I get that diagram.png at @0.44 sec ?
-
I had to get back to the explanation of the difference between the containers and components directories which confused me later in the tutorial. I'd suggest call the dumb component directory something different from the diagram like 'plainhtml'.
-
How can such a verbose function as mapStateToProps be difficult? Guess you're just an amazing teacher for making that not even a possibility.
-
This series kills it. many thanks.
-
badass tutorial. thanks!
-
By the end of the tutorial the page doesnt render when I use
export default connect(mapStateToProps)(UserList);
but when i just do regular export default UserList; itll render.
PLEASE HELP.. heres my UserList function:
http://pastebin.com/EGmebXme -
I am not state.users is undefined… I don't know where the bug is
-
Awesome and easy explanation to react-redux 🙂
-
anyone can help ?
—
Module build failed: SyntaxError: Unexpected token (16:7)14 | }
15 |
> 16 | export default UserList;
| ^
17 |BabelLoaderError: SyntaxError: Unexpected token (16:7)
14 | }
15 |
> 16 | export default UserList;
| ^
17 |
—-
its on default actually ( the up arrow is under the "d" ) -
3rd
-
2nd
-
1st
Leave a Reply