src/Badge.js
function createBadgeStyle(style) {
    return React.createClass({
        displayName: Badge.displayName + style,
        render() {
            return <Badge {...this.props} style={style.toLowerCase()} />;
        }
    });
}
function createBadgeStyle(style) {
    return React.createClass({
        displayName: Badge.displayName + style,
        render() {
            return <Badge {...this.props} style={style.toLowerCase()} />;
        }
    });
}
function createBadgeStyle ( style ) { return React . createClass ( { displayName : Badge . displayName + style , render ( ) { return < Badge { ... this . props } style = { style . toLowerCase ( ) } / > ; } } ) ; }
Create a style for badges
@param {String} style
@return {React.Component}
Create a style for badges