Skip to content

A simple React app demonstrating the use of props to pass data from a parent component to child components like Header and Footer.

PuneethKumarMS/react-header-footer-props

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

React Props Demo

This is a simple React application that demonstrates how to use props to pass data from a parent component to child components. The app includes a Header and Footer component, both of which receive and display data passed down from the App component using props.

πŸ“Œ Features

  • Functional components with props
  • Clear separation of parent and child components
  • Dynamic rendering of content using props
  • Fixed header and footer with simple styling

🧠 Concepts Used

  • React functional components
  • props for parent-to-child communication
  • JSX syntax
  • Basic CSS for layout

πŸ“ Project Structure

react-props-demo/
β”œβ”€β”€ public/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ Header.jsx
β”‚   β”‚   └── Footer.jsx
β”‚   β”œβ”€β”€ App.jsx
β”‚   β”œβ”€β”€ style.css
β”‚   └── main.jsx
β”œβ”€β”€ package.json
β”œβ”€β”€ vite.config.js
└── README.md

πŸš€ Getting Started

1. Clone the Repository:

2. Install Dependencies:

  • npm install

3. Run the Development Server:

About

A simple React app demonstrating the use of props to pass data from a parent component to child components like Header and Footer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published