Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

teste

// Create a Title component that'll render an <h1> tag with some styles
const Title = styled.h1`
  font-size: 2.5em;
  text-align: center;
  color: palevioletred;
`;

// Create a Wrapper component that'll render a <section> tag with some styles
const Wrapper = styled.section`
  padding: 4em;
  background: papayawhip;
`;

// Use Title and Wrapper like any other React component – except they're styled!
render(
  <Wrapper>
    <Title>
      Hello World!
    </Title>
  </Wrapper>
);
Hello World!
Source by styled-components.com #
 
PREVIOUS NEXT
Tagged: #teste
ADD COMMENT
Topic
Name
7+8 =