Before getting to React, it's helpful to know what this
does generally in Javascript.
Take the following snippet of code. It's written in ES6 but the principles for this
predate ES6.
class Dog {
constructor() {
// npm install if | |
const If = require('if'); | |
const f = (c, t, f) => If(c).Then(t).Else(f); |