From 4f96ec02bb99b2ee4ed814d1f83bc8662d41767b Mon Sep 17 00:00:00 2001 From: Asabeneh Date: Mon, 5 Oct 2020 16:19:17 +0300 Subject: [PATCH] day_5 has been cleaned --- 05_Day_Props/05_props.md | 4 ++-- 05_Day_Props/30-days-of-react_boilerplate-props/src/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/05_Day_Props/05_props.md b/05_Day_Props/05_props.md index 89be431..4cb1cee 100644 --- a/05_Day_Props/05_props.md +++ b/05_Day_Props/05_props.md @@ -903,7 +903,7 @@ ReactDOM.render(, rootElement) ``` Now, let's destructure all the components we had and assemble them together. We pass props from one component to another typically from parent to a child component. -For instance in the Main component techs, user, greetPeople and handleTime props have been passed from the parent component Main to child components TechList and UserCard. Below, you will get all the codes destructured and cleaned. +For instance in the Main component techs, user, greetPeople and handleTime props have been passed from the parent component Main to child components TechList and UserCard. Below, you will get all the codes destructured and cleaned. ```js import React from 'react' @@ -995,7 +995,7 @@ const Main = ({ user, techs, greetPeople, handleTime }) => ( const Footer = ({ copyRight }) => (
-

{copyRight.getFullYear()}

+

Copyright {copyRight.getFullYear()}

) diff --git a/05_Day_Props/30-days-of-react_boilerplate-props/src/index.js b/05_Day_Props/30-days-of-react_boilerplate-props/src/index.js index 2f31110..470e931 100644 --- a/05_Day_Props/30-days-of-react_boilerplate-props/src/index.js +++ b/05_Day_Props/30-days-of-react_boilerplate-props/src/index.js @@ -91,7 +91,7 @@ const Main = ({ user, techs, greetPeople, handleTime }) => ( const Footer = ({ copyRight }) => ( )