Skip to content

PuneethKumarMS/react-header-footer-props

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 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

 
 
 

Contributors