How to use @reshadow/react - 1 common examples

To help you get started, we’ve selected a few @reshadow/react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lttb / reshadow / packages / styled / index.js View on Github external
const create = (options = {}) => (strs, ...values) => {
        const isComponent = typeof tag !== 'string';
        const element = isComponent ? getDisplayName(tag) : tag;
        const elementClassName = '.__root__';

        if (typeof strs === 'function') {
            values = [strs];
            strs = ['', ''];
        }

        const wrapper = (options.wrap || wrap)(elementClassName, [...strs]);

        class StyledComponent extends React.Component {
            constructor() {
                super();
                this.innerRender = this.innerRender.bind(this);
            }

            mapValues(props) {

@reshadow/react

reshadow react

MIT
Latest version published 2 years ago

Package Health Score

49 / 100
Full package analysis

Popular @reshadow/react functions

Similar packages