Created
October 21, 2020 17:32
-
-
Save sb-bilal-dev/9a7615ec95b2b770db1165c67df660ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Now let's log props.dogCount | |
const MyDogHouse = (props) => ( | |
<div>{props.dogCount}</div> | |
) | |
// It will change like this | |
const MyDogHouse = (props) => ( | |
<div>{(console.log(props.dogCount), props.dogCount)}</div> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment