This repository is a part of CSI-248 at Renton Technical College.
- Clone the repository to your local machine. (Do not use OneDrive for assignments in this course!)
- Make note of the folder where you cloned the repository.
- After you have cloned this repository navigate to your local repository using the cd command.
- Type
code .to open the repository in Visual Studio Code. - Hit ctrl + ` to open the terminal.
- Type
mkdir Screenshotsto add a screenshots folder to the project.
-
We are going to build a basic UI to display a blog post out out components.
-
In the terminal type
npm create vite .to create a vite project in the current directory. -
Name the project guidedactivity2.
-
Choose React as the Framework.
-
When the project has generated type
cd guidedactivity2. -
Type
npm install. -
Take a screenshot of the template project running and save in screenshots.

-
In the src folder replace ALL of the code in App.jsx with the following:

-
Save App.jsx and notice the change in the browser. Add a screenshot of this output.

-
Inside of src create a folder named components.
-
In BlogHeader.jsx add the following code:
-
Go back to App.jsx and import the new component and render the component after the h1:

-
Now that we see our component is working lets try to pass some data to it with props
-
Modify BlogHeader.jsx to take a props parameter and display information from the props in the component:

-
Data is now being moved from a parent component to a child component. Take a Screenshot of the output and add to screenshots.

-
Repeat this process for a BlogBody component and a BlogFooter component.
-
Code for BlogBody:
-
Code for BlogFooter:
-
Import BlogBody and BlogFooter into App.jsx and render them while passing some data to the props
-
Updated code for App.jsx. Notice how components can also use self-closing tags.
-
Take a screenshot of the rendered webpage and save in screenshots directory.

- Type
git add .to stage all updated files. - Type
git commit -m "Guided Activity 2 Complete". - Type
git push.
If you have any questions about this assignment please reach out to myself or our TA for this course.
Feel free to message your instructor or the TA on Canvas if you have any questions.









