You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@comerc, checkout my babel plugin which allows to use variable identifiers as Reshadow selectors.
import {css} from 'reshadow' // any package is configurable
import literalShadow from '@radist2s/babel-plugin-literal-shadow'
const Button = () => <button />
const Text = () => <input />
const style = css`
${literalShadow(Button)} {
color: red;
}
/** template literal inside template literal, what is the madness! **/
/** does the same as function call in different syntax **/
${literalShadow`${Text}`} {
color: red;
}
`
https://www.styled-components.com/docs/advanced#referring-to-other-components
Invalid result:
The text was updated successfully, but these errors were encountered: