You must be logged into Blackboard for the videos below to show!
Following along with the video example, start a new React project.
https://classroom.github.com/a/sj5WcoFq
.gitignore
and a html mockup)create-react-app
to create your react project inside the repoUsing the video example as reference, practice starting an App from a mockup using JSX
replace the default App
function in src/App.js
with the below code
(make up some data for your friends' name/description/comment):
function App() { const friends = [ {name: "", description: "", comment: "", ditched: false}, {name: "", description: "", comment: "", ditched: false}, {name: "", description: "", comment: "", ditched: true}, {name: "", description: "", comment: "", ditched: false} ]; return ( <> <p>Update Me</p> </> ); }
Write JSX code in the return
to use the friends
data and make the
page look like this (with the four friends you defined instead):
mockups/mockup-jsx-practice.html
body
into your return
function<head>
of your
public/index.html
file to include bootstrapmap
instead of
a for loop.Ditch
button for friends
where ditched
is true (use the ternary if expression, not an if control statement)
When it's done, make a copy of src/App.js
named src/App-practice.js
to
preserve that work for grading.