An action is a plain JavaScript object which must have a type field. It can also have other information which can be stored in other field called payload.
const addTodoAction = {
type: 'todos/todoAdded',
payload: 'Buy milk'
}
1. Clone the repository to the newly created server instance. | |
```sh | |
git clone <url-of-the-repo> | |
``` | |
2. Install node.js (I prefer the nvm way to install node.js) | |
```sh | |
sudo apt install curl | |
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash | |
source ~/.bashrc |