This content moved here: https://exploringjs.com/impatient-js/ch_arrays.html#quickref-arrays
Another big ol' list of React resources
Tutorials
- https://medium.com/@firasd/quick-start-tutorial-using-redux-in-react-apps-89b142d6c5c1
- https://github.com/firasd/react-redux-tutorial
- https://github.com/reactjs/react-redux
- http://www.youhavetolearncomputers.com/blog/2015/9/15/a-conceptual-overview-of-redux-or-how-i-fell-in-love-with-a-javascript-state-container
React redux project structure
| # This configuration file is provided on an "as is" basis, | |
| # with no warranties or representations, and any use of it | |
| # is at the user's own risk. | |
| # | |
| # You will need to edit domain name information, IP addresses for | |
| # redirection (at the bottom), SSL certificate and key paths, and | |
| # the "Public-Key-Pins" header. Search for any instance of "TODO". | |
| user www-data; | |
| worker_processes 4; |
#Understanding closures, callbacks and promises
For a code newbie like myself, callbacks, closures and promises are scary JavaScript concepts.
10 months into my full-time dev career, and I would struggle to explain these words to a peer.
So I decided it was time to face my fears, and try to get my head around each concept.
Here are the notes from my initial reading. I'll continue to refine them as my understanding improves.
| function compose(...fnArgs) { | |
| const [first, ...funcs] = fnArgs.reverse(); | |
| return function(...args) { | |
| return funcs.reduce((res, fn) => fn(res), first(...args)); | |
| }; | |
| } |
| const _ = require('lodash') | |
| const path = require('path') | |
| const express = require('express') | |
| const webpack = require('webpack') | |
| const config = require('./webpack.dev.config') | |
| const app = express() | |
| const compiler = webpack(config) | |
| var devMiddleware = require('webpack-dev-middleware')(compiler, { |
Solutions to FreeCodeCamp Challenges
See http://www.freecodecamp.com/abhisekp
ShortUrl to Gist: http://j.mp/abhisekpFCCSolns
One Liner Solutions Only: http://j.mp/abhisekpFCCSolnsOneLiners
Solved using RegExp: http://bit.ly/abhisekpFCCRegExpSolns
In React's terminology, there are five core types that are important to distinguish:
React Elements
| # This configuration file is provided on an "as is" basis, | |
| # with no warranties or representations, and any use of it | |
| # is at the user's own risk. | |
| # | |
| # You will need to edit domain name information, IP addresses for | |
| # redirection (at the bottom), SSL certificate and key paths, and | |
| # the "Public-Key-Pins" header. Search for any instance of "TODO". | |
| user www-data; | |
| worker_processes 4; |