Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const reactStyled = createStyled(elem => {
const style = styled[KEYS.__style__];
let result = styled(elem);
if (style && result) {
result = React.cloneElement(result, {
style: Object.assign({}, style, result.props.style),
});
}
return result;
});