Last active
November 27, 2020 20:21
-
-
Save DoctorDerek/1ad030c5dbcd53980a44c22775d654fe to your computer and use it in GitHub Desktop.
App.jsx - How to Pass All Props to a Child Component in React
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
import React from "react" | |
import "./styles.css" | |
import ParentComponent from "./ParentComponent" | |
const App = () => ( | |
<div className="App"> | |
<ParentComponent name="Johnny" job="👨🎤"> | |
🌟 | |
</ParentComponent> | |
</div> | |
) | |
export default App |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment