This is simple react project design to understand props more
This particular project is part of Bob Ziroll's react course on scrimba
- Makea a reusable components
- How to pass a prop into a component
- Recieving props in a components
Clone the project
git clone https://github.com/bhantsi/react-props
Go to the project directory
cd react-props
Install dependencies
npm install
Start the server
npm run start
import Contact from './components/Contact'
function App(props) {
return (
<div>
<Contact
name="John Doe"
email="[email protected]"
/>
</div>
)
}
export default App;
If you have any feedback, please reach out to us at [email protected]