React Component Lifecycle
- getInitialState
- getDefaultProps
- componentWillMount
- componentDidMount
- shouldComponentUpdate (Update only)
- componentWillUpdate (Update only)
- componentWillReceiveProps (Update only)
- render
| [user] | |
| email = <your email> | |
| name = <yout name> | |
| [alias] | |
| ci = commit | |
| st = status | |
| s = status | |
| a = !git add -A && git status | |
| co = checkout |
React Component Lifecycle
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [Para que no te habra los directorios con PHP Storm
xdg-mime default caja-folder-handler.desktop inode/directory
| // ensure the keys being passed is an array of key paths | |
| // example: 'a.b' becomes ['a', 'b'] unless it was already ['a', 'b'] | |
| const keys = ks => Array.isArray(ks) ? ks : ks.split('.') | |
| // traverse the set of keys left to right, | |
| // returning the current value in each iteration. | |
| // if at any point the value for the current key does not exist, | |
| // return the default value | |
| const deepGet = (o, kp, d) => keys(kp).reduce((o, k) => o && o[k] || d, o) |
| // setup | |
| const wait = value => new Promise(resolve => { | |
| setTimeout(() => resolve(value), 3000); | |
| }); | |
| const fetchFoo = () => wait('foo'); | |
| const fetchBar = () => wait('bar'); | |
| const fetchBaz = () => wait('baz'); | |
| const fetchDataSlowly = async time => { |
| # Javascript Node CircleCI 2.0 configuration file | |
| # | |
| # Check https://circleci.com/docs/2.0/language-javascript/ for more details | |
| # | |
| version: 2.1 | |
| executors: | |
| builder: | |
| docker: | |
| - image: circleci/node:10.15.3 |
| // ------------ NodeJS runtime --------------- | |
| // Add aws-sdk in package.json as a dependency | |
| // Example: | |
| // { | |
| // "dependencies": { | |
| // "aws-sdk": "^2.0.9", | |
| // } | |
| // } | |
| // Create your credentials file at ~/.aws/credentials (C:\Users\USER_NAME\.aws\credentials for Windows users) | |
| // Format of the above file should be: |