Skip to content

Instantly share code, notes, and snippets.

View react-tooltip.js
import ReactDOM from 'react-dom';
const options = {
offset: 15
};
const styles = {
position: 'absolute',
@AlexGalays
AlexGalays / index.js
Created Feb 1, 2015
requirebin sketch
View index.js
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));
}));