- Source:
Properties:
Name | Type | Description |
---|---|---|
styletron |
object | Styletron instance |
children |
ReactElement | children |
Provides a Styletron instance to descendant styled components via context
Example
const Styletron = require('styletron');
function render() {
return React.renderToString(
<StyletronProvider styletron={new Styletron()}>
<App/>
</StyletronProvider>
);
}
Extends
- ReactClass