Skip to content

Dibya5425/Passing-The-Props-Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Passing the Props

  • PEP Assignment 1

Greeting new students at LPU College. We are suppose to create a welcome page for new students when they login on our site. We want to isolate main component from greeting text so we choose to create a welcome component that takes name as input and output a welcome message.

  • Details

Create a Welcome component(greeting message) in Welcome.js Use React functional component to do so. Output the welcome message "Hey !" where name is name of the student using h1 tag. Also render the "Welcome to College." using h2 tag. A prop named "name" will be passed to Welcome component use it in writing greeting text.

  • Acceptance criteria

Welcome message should be as given in the Details section. Use of functional component.

  • Output Passing the Props

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published