---
title: "Discussion on \"React - Styled Components(beginner)\" | Hashnode"
description: "Discussion on \"React - Styled Components(beginner)\". const Father = styled.div`\n  display: flex;`\n\nconst Box = styled.div`\n  background-color: ${(props) => props.bgColor};   //receiving props from JSX\n  width: 100px;\n  height: 100px;\n  display: flex;\n  justify-content: center;\n  align-items: center;`\n\n..."
url: "https://hashnode.com/posts/react-styled-componentsbeginner/63101d8575af73ad1f062ac6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [React - Styled Components(beginner)](https://hodlbaek.hashnode.dev/react-styled-componentsbeginner?utm_source=hashnode&utm_medium=feed)

const Father = styled.div\` display: flex;\` const Box = styled.div\` background-color: ${(props) => props.bgColor}; //receiving props from JSX width: 100px; height: 100px; display: flex; justify-content: center; align-items: center;\` ...

Sep 1, 2022 · 1 min read · hodlbaek.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#styled-components](https://hashnode.com/tag/styled-components)

## Written by

[Seungheon Baek](https://hashnode.com/@HODLBAEK)

@HODLBAEK · South Korea

  
[View profile](https://hashnode.com/@HODLBAEK)

Front-end Developer

Github: https://github.com/HODLBAEK &lt;Software Engineer&gt; I'm a self-taught Frontend Developer passionate about web development. I use HTML, CSS, Sass, Javascript, React. As an ex-banker, I also am very passionate about #BTC and what it could mean to humanity and money as we know it.

## Responses

Comments are turned off for this post.
