Last active
May 26, 2016 06:09
-
-
Save philcockfield/c77bc265759eb0b2d293459d98057d6e to your computer and use it in GitHub Desktop.
NodeAKL Meetup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/philcockfield/ui-harness-sample.git && cd ui-harness-sample && npm install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('my thing', function() { | |
it('does something', () => { | |
... | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import Radium from 'radium'; | |
import css from 'js-util/lib/react-css'; | |
/** | |
* | |
*/ | |
class Foo extends React.Component { | |
static propTypes = {}; | |
static defaultProps = {}; | |
styles() { | |
return css({ | |
base: {}, | |
}); | |
} | |
render() { | |
const styles = this.styles(); | |
return ( | |
<div style={ styles.base }>Foo</div> | |
); | |
} | |
} | |
export default Radium(Foo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment