课程: Creating a Serverless Application Using React in AWS

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Challenge: Build a menu based on dynamic data

Challenge: Build a menu based on dynamic data

(bright music) - [Instructor] With your new header component, you've already got a pretty good indication of what you're going to want to do with the rest of the App.js html, and that, in fact, is your challenge. First, I want you to create a new React component, again, make it a function component, so you can use header as an example, and let's replace the footer element, so you should have a footer component, and then, things get a little more interesting because if you look at this large chunk under main, it's almost too big to be a singular component, so I want to give you a little bit of an additional challenge. After you create the footer function component, similar to header, create another function component, call it main, and then, create some additional components. One for the welcome div, and then, one for the hotel info div, and you're going to have to figure out how to reference these two function…

内容