Skip to content

Instantly share code, notes, and snippets.

View geuis's full-sized avatar

Charles Lawrence geuis

View GitHub Profile
@andrewzey
andrewzey / createReactClass-or-ES7-Classes.jsx
Last active August 8, 2018 05:58
Why you should either use createReactClass, or enable static properties in babel when working with React. Don't use plain ES6 classes!
import React, {Component} from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
// Problem: When writing React components, ES6 Classes present two annoyances:
// 1. No lexical pre-binding of `this` in class method references.
// 1a. Means we have to manually bind, but if we do that in render, we're
// creating lots of extraneous anonymous functions every render
// 1b. Alternately, we would have to meticulously "pre-bind" all of our
// class methods in the constructor (see example `MyES6Component`)
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active November 14, 2024 15:40
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\