Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Usage of styled as a function
/* src/components/Loader.js */
.
.
.
/* line 6 */
const Loader = ({ className }) => (<div className={className}><Loading/></div>)
.
.
.
/* line 41 - 46 */
export default styled(Loader)`
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.