From e720802da9c483161245d6e05ecdc82e44460712 Mon Sep 17 00:00:00 2001 From: Assim Date: Mon, 12 Feb 2018 12:24:23 +0000 Subject: [PATCH] Add container as a styled div to styled-components doc --- docs/docs/styled-components.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/docs/styled-components.md b/docs/docs/styled-components.md index a5cdc6f88ba09..592a133a2d037 100644 --- a/docs/docs/styled-components.md +++ b/docs/docs/styled-components.md @@ -38,7 +38,12 @@ Now let's create a sample Styled Components page at `src/pages/index.js`: import React from "react"; import styled from "styled-components"; -import Container from "../components/container"; +const Container = styled.div` + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +`; const UserWrapper = styled.div` display: flex;