Last active
February 11, 2020 15:10
-
-
Save AllGistsEqual/68e07421934047f7c76b03261a3f69b4 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
// our NewWorldComponent.jsx | |
const NewWorldComponent = (props) => { | |
const { targetWorld } = props | |
return ( | |
<div> | |
Hello {targetWorld}! | |
</div> | |
) | |
} | |
// somewhere in our projects where we imported the component | |
<NewWorldComponent targetWorld="Earth" /> | |
// <div>Hello Earth!</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment