How to use the @reshadow/utils/html-tags.forEach function in @reshadow/utils

To help you get started, we’ve selected a few @reshadow/utils 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
WrappedComponent.styledComponentId = 'id';

        return WrappedComponent;
    };

    const result = create();

    result.attrs = attrs => create({attrs});
    result.create = create;

    return result;
};

const styled = Base => createStyled(Base);

tags.forEach(tag => {
    styled[tag] = createStyled(tag);
});

export * from 'theming';
export {createGlobalStyle} from '@reshadow/styled/global';

export function isStyledComponent(target) {
    return target && typeof target.styledComponentId === 'string';
}

export {css, keyframes, ThemeConsumer};

export default styled;

@reshadow/utils

reshadow utils package

MIT
Latest version published 2 years ago

Package Health Score

49 / 100
Full package analysis

Similar packages