Skip to content

Instantly share code, notes, and snippets.

View brev's full-sized avatar
🎯
Focusing

Brev Patterson brev

🎯
Focusing
View GitHub Profile
@jarv
jarv / fa-ublock-adblock-workaround
Created January 16, 2015 18:42
fontawesome ublock adblock workaround
.my-fa-facebook:before {
content: "\f09a";
}
.my-fa-facebook-square:before {
content: "\f082";
}
.my-fa-flickr:before {
content: "\f16e";
}
.my-fa-google-plus-square:before {
@HelveticaScenario
HelveticaScenario / ReactSurface.js
Last active August 29, 2015 14:00
React.js as a famo.us surface
/*
This is an extension of the famo.us Surface type. It behaves the exact same except that the content
property holds a ProxyConstructor object (the type that gets returned by any of the React component
functions such as those in React.DOM or created by React.createClass) instead of a string or Node.
One thing to note is that the component fed in to content will get an extra prop, _surface, which
is the surface object that holds it
example usage
var TestComponent = React.createClass({