This is a continuation of the last assignment. The repo to submit this part only contains the next set of html mockups.
https://classroom.github.com/a/OqRkGL8Y
Again, the complete app will work as shown below, with the data stored locally in the App. The final assignment will connect to a server/database API.
Following the video example, add an Add Section... dropbox to your component
Course
with the useState
hook to hold the list of sectionsApp
Course
component following the HTML/bootstrap from mockups/mockup02.html
selected
attribute on the first option is how you indicate which option is selected in HTMLvalue={-1}
on the select element instead
Course
from the last partvalue
, as in the mockuponChange
handler to the Add Section dropboxCourse
to generate fake section ids (the db will do this later)