Skip to content

Instantly share code, notes, and snippets.

View dwilt's full-sized avatar

Dan Wilt dwilt

  • 64 Interactive, LLC
  • Hellertown, PA
View GitHub Profile
dwilt / NativeAxis Gist
Created October 27, 2016 22:43
Gist to show off I'm not a total noob at ES6
// 22: class - creation
// To do: make all tests pass, leave the assert lines unchanged!
describe('class creation', () => {
it('is as simple as `class XXX {}`', function() {
class TestClass {}
const instance = new TestClass();
assert.equal(typeof instance, 'object');
export const functionToImport = () => {
// I had an old reference to a class method that was in this file previously
// React never consold an error but I saw the warning `Did not expect componentDidMount timer to start while render timer is still in progress for another instance`
// luckily I had few very changes in my working directory, so I didn't spend too much time trying to find the culprit
var x = this.something();
return x;
* List
* Of
* things