Skip to content

Instantly share code, notes, and snippets.

@DoctorDerek

DoctorDerek/App.jsx

Last active Nov 27, 2020
Embed
What would you like to do?
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