Sale!

# Props

Original price was: $40.00.Current price is: $30.00.

Category:

Description

Rate this product

# Props

In Visual Studio code, press `command+shift+v` (Mac) or `ctrl+shift+v` (Windows) to open a Markdown preview.

## Getting Started

Using your command line, you will need to navigate to the this folder, install all dependencies, and start the app.

“`bash
cd exercises/02-props/
code . # if you would like to open this in a separate VSCode window
yarn install
yarn start
“`

If, at any time, you need to stop the app, press `ctrl+c`.

## Instructions for Challenge

As a developer, I would like to create a component that welcomes users.
The component should accept a prop “name”, which accepts a string.
If “name” is provided, the component should render “Hello, **\_\_\_\_\_**.”
If “name” is not provided to the component, the component should render “Hello, user.”
To achieve this, please use default props

### Developer Instructions

1.  Create a folder name components inside of the “exercises/01-props/src” folder
2.  Create a “Welcome” component
3.  The “Welcome” component should import react
4.  The “Welcome” component should render the proper to the screen using the h1 tags

“`bash
<Welcome name=”Jamal” />
<Welcome name=”Jamal” />
<Welcome />
“`

### Example

![](demo.png)

Reviews

There are no reviews yet.

Be the first to review “# Props”

Your email address will not be published. Required fields are marked *