(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
const log = (scope, item) => () => console.log(`${item} of ${scope}`); | |
const dummy = () => {}; | |
describe('Outer scope', function() { | |
before(log(this.title, 'before')); | |
beforeEach(log(this.title, 'beforeEach')); | |
afterEach(log(this.title, 'afterEach')); |
const path = require('path'); | |
const printOptions = { | |
quote: 'single', | |
trailingComma: true, | |
}; | |
const I18N_MIXIN = 'i18nMixin'; | |
const I18N_MIXIN_FILE = 'mixins/i18n'; | |
const CONNECT_TO_I18N = 'connectToI18n'; |
const _ = require('underscore'); | |
const printOptions = { | |
quote: 'single', | |
trailingComma: true, | |
}; | |
const mochaFunctions = [ | |
'describe', | |
'it', |
const printOptions = { | |
quote: 'single', | |
trailingComma: true, | |
}; | |
const SHOULD = 'should'; | |
module.exports = function transform(file, api) { | |
const source = file.source; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
var React = require('react'); | |
var Grandparent = React.createClass({ | |
childContextTypes: { | |
foo: React.PropTypes.string.isRequired | |
}, | |
getChildContext: function() { | |
return { | |
foo: this.props.foo |
/** | |
* Functional is always better. Keep it simple, just proxy them to classes if you need | |
* Classes sucks. Try to avoid them. | |
* Always give a way to use something "class specific" to others | |
* => don't make it class specific in the first place | |
* / | |
function Foo(x) { | |
this.x = x; | |
} |