1. What is the virtual DOM?
2. What is a component?
3. What is JSX?
Answer the following questions using the index.html
and app.js
files in this repo.
-
Pull in React, ReactDOM, and Babel from a CDN.
-
Create and render a React component. This component should render the words
Hello, World
as anh1
HTML element. It should have a class of"header"
. -
Create a funtional component
Header
that takes a prop,title
an renders it ash1
element. Render aHeader
on the page somewhere so you can check your work. -
Create a
Card
compenent based on this mock-up. Render it somwhere on your page..
-
Create a
NavBar
component. It should display an unordered list of page links. These links should be generated from an array of objects.const pageData = [{text: "About", link: "/about"}, {text: "Our Team", link: "/team"}, {text: "Pricing", link: "/pricing"}]; <NavBar pages={pageData} />