Skip to content

Instantly share code, notes, and snippets.

@DoctorDerek
Last active November 27, 2020 20:21
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 DoctorDerek/1ad030c5dbcd53980a44c22775d654fe to your computer and use it in GitHub Desktop.
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
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