Redoing the Cafe example

In an earlier lecture I showed an example of a JavaScript application that displays menu items and implements ordering for an imaginary cafe. You can find that application at this link. The lecture notes that documented some of the things I did in that example along with the full JavaScript source for the example are available on this page.

In this exercise you are going to rewrite this as a React application. Your application will be communicating with the same back end server that my original example used. You can borrow the approriate fetch() code from the earlier example to use in your React app.

What to do

For this assignment you are going to be writing the code for several components: