diff --git a/src/react-inline-css.js b/src/react-inline-css.js index 40252cf..c6b7981 100644 --- a/src/react-inline-css.js +++ b/src/react-inline-css.js @@ -33,6 +33,9 @@ var InlineCss = createReactClass({ ); }, render: function () { + if(this.props.counter){ + refCounter = this.props.counter; + } var namespace = this.props.namespace || "InlineCss-" + refCounter++; var componentName = this.props.componentName || "&"; var stylesheet = this._transformSheet(this.props.stylesheet, componentName, namespace);