Skip to content

Instantly share code, notes, and snippets.

View AlexGalays's full-sized avatar

Alexandre Galays AlexGalays

View GitHub Profile
import ReactDOM from 'react-dom';
const options = {
offset: 15
};
const styles = {
position: 'absolute',
@AlexGalays
AlexGalays / index.js
Created February 1, 2015 15:32
requirebin sketch
var h = require('virtual-dom/h');
var diff = require('virtual-dom/diff');
var patch = require('virtual-dom/patch');
var createElement = require('virtual-dom/create-element');
function render() {
return h('ul', elements.map(function(el) {
return h('li', {key: el.id, className: (el.isBlue ? 'blue' : '')}, String(el.id));
}));