Arup Rakshit aruprakshit
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.
git-promt.sh script here. Put it somewhere like
~/.git-prompt.sh. If you want to be all CLI about it, you could just run:
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh
Now modify your your bash profile (it’s at
~/.bash-profile, in case you’re new to this stuff). Before the part of the file that declares what your prompt will look like (
PS1=[...]), load in the script you just downloaded, like so:
# Load in the git branch prompt script.