Skip to content

Commit a12677e

Browse files
assimelhaKyleAMathews
authored andcommitted
Add container as a styled div to styled-components doc (#3988)
1 parent 9429cbc commit a12677e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/docs/styled-components.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ Now let's create a sample Styled Components page at `src/pages/index.js`:
3838
import React from "react";
3939
import styled from "styled-components";
4040

41-
import Container from "../components/container";
41+
const Container = styled.div`
42+
display: flex;
43+
flex-direction: column;
44+
align-items: center;
45+
justify-content: center;
46+
`;
4247

4348
const UserWrapper = styled.div`
4449
display: flex;

0 commit comments

Comments
 (0)