Skip to content

Commit 48570db

Browse files
author
justintsugranes
committed
initial commit
0 parents  commit 48570db

File tree

14 files changed

+29874
-0
lines changed

14 files changed

+29874
-0
lines changed

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

INSTRUCTIONS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Instructions
2+
3+
## Task
4+
5+
1. You are using the code from the lesson item titled *The Navbar*. Your goal is to add another link to the existing code. This link should show a brand new component, named Contact. So, add a new file, `Contact.js`, to the root of the `src` folder.
6+
2. Inside the `Contact.js` file, add an ES5 function, named `Contact`. The the `export default Contact` after the `Contact` function's closing curly brace.
7+
3. Inside the body of the `Contact` function, add a return statement with the following code: `<h1>Contact me on this page.</h1>`.
8+
4. Inside the App.js file, import the newly-built Contact component.
9+
5. Inside the App.js file's App function's return statement, locate the `nav` element, and inside of it, add another `<Link>` element, with the `to` attribute pointing to `contact`, the `className` set to `"nav-item"`, and the the text inside the Link element's opening and closing tags set to `Contact`.
10+
6. Inside the `Routes` element, add a third route, with the `path` attribute pointing to `"/contact"`, and the `element` attribute set to `{<Contact />}`.
11+
7. Save all your changes and view your updates in the served app. You should have three links in the top navbar, and the third link should be `Contact`. Once you click the link, the sentence "Contact me on this page" should replace whatever other content was under the navbar previously.

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# React Player Example
2+
3+
An example of how to use React Player to embed videos in react pages
4+
5+
## About this React app
6+
7+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
8+
9+
## Setup
10+
11+
1. Open the built-in terminal
12+
2. Run `npm install` to add the `node_modules` folder
13+
3. Run `npm start`
14+
4. Click the "Open Development server" in the bottom status bar to view the running react app in the browser.

0 commit comments

Comments
 (0)