Skip to content

Instantly share code, notes, and snippets.

@cyx
Forked from jxson/mercury-component.js
Created July 3, 2014 16:29
Show Gist options
  • Save cyx/666be3914c20ac5b0f06 to your computer and use it in GitHub Desktop.
Save cyx/666be3914c20ac5b0f06 to your computer and use it in GitHub Desktop.
var h = require('mercury').h;
var css = require('./index.css');
var insert = require('insert-css');
module.exports = function component(state) {
insert(css);
return h('.foo')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment