This document details some tips and tricks for creating redux containers. Specifically, this document is looking at the mapDispatchToProps argument of the connect function from [react-redux][react-redux]. There are many ways to write the same thing in redux. This gist covers the various forms that mapDispatchToProps can take.
I hereby claim:
- I am moughamir on github.
- I am omnizya (https://keybase.io/omnizya) on keybase.
- I have a public key ASDJHmguZx6oEZxyaEYP8NkUMcrE7ycAW4hSy6kYIQuVLgo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Install Yarn | |
| curl -o- -L https://yarnpkg.com/install.sh | bash | |
| # Update Terminal | |
| git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it | |
| echo export BASH_IT_THEME="modern" >> ~./bashrc | |
| ~/.bash_it/install.sh | |
| source ~./bashrc |
To be completed!
A Pen by Mohamed Moughamir on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0x8A1d23a8CD0d453A50D783F8F775007c75D0867a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0xF7AE28007FE3A251104D2ab21BF92DA70890c259 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.getJSON('tarot.json', function(data){ | |
| console.log(data); | |
| var deck = data.deck.map(function(card){ | |
| return card.Name + ': ' + card.value; | |
| }); | |
| }, function(success){ | |
| console.info("done"); | |
| }); |
A Pen by Craig Coles on CodePen.
