Styled Components In React

PHOTO EMBED

Tue Sep 13 2022 22:28:02 GMT+0000 (UTC)

Saved by @SamMrch #react.js

import styled from "styled-components";

// Styled component named StyledButton
const StyledButton = styled.button`
  background-color: black;
  font-size: 32px;
  color: white;
`;

function Component() {
  // Use it like any other component.
  return <StyledButton> Login </StyledButton>;
}
content_copyCOPY

https://www.smashingmagazine.com/2020/07/styled-components-react/