UNPKG

@indoqa/style-system

Version:

A style system for React with Typescript typed theme support and several base components.

8 lines 357 B
import * as React from 'react'; import { RendererContext } from 'react-fela'; export function withRenderer(Component) { return function BoundComponent(props) { return (React.createElement(RendererContext.Consumer, null, (value) => React.createElement(Component, { renderer: value, ...props }))); }; } //# sourceMappingURL=withRenderer.js.map