Skip to content

Instantly share code, notes, and snippets.

@AllGistsEqual
Last active February 11, 2020 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AllGistsEqual/68e07421934047f7c76b03261a3f69b4 to your computer and use it in GitHub Desktop.
Save AllGistsEqual/68e07421934047f7c76b03261a3f69b4 to your computer and use it in GitHub Desktop.
// 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