React stylerify
npm install react-stylerify
browserify -t react-stylerify -o build.js main.js
React stylerify is a browserify wrapper around react-styling, that allow to import style from external file through require('mystyle.radium');
or require('mystyle.css');
or require('mystyle.style');
.
Working example
This project uses Radium together with React Template.
Usage
<Button ="primary">Radium Button</Button>
var Radium = ;var React = ;var styles = ; // alternately//var styles = require('style.css')();//var styles = require('style.style')(); @RadiumComponent static propTypes = kind: ReactPropTypesisRequired ; { return <button => thispropschildren </button> ; }
/* style.radium */}