Skip to content

Instantly share code, notes, and snippets.

@mtomcal
mtomcal / HigherOrderComponents.jsx
Created September 14, 2017 22:13
Adapting HoC to RenderProps
////////////////////////////////////////////////////////////////////////////////
// Exercise:
//
// Make `withMouse` a "higher-order component" that sends the mouse position
// to the component as props.
//
// Hint: use `event.clientX` and `event.clientY`
//
// Got extra time?
//
@mtomcal
mtomcal / Gulpfile.js
Last active May 1, 2023 01:59
More gulpfile fun WIP
var gulp = require('gulp');
var streamify = require('gulp-streamify');
var uglify = require('gulp-uglify');
var notify = require('gulp-notify');
var gutil = require('gulp-util');
var less = require('gulp-less');
var rename = require('gulp-rename');
var nodemon = require('gulp-nodemon');
var jshint = require('gulp-jshint');
var react = require('gulp-react');