Question: Identify the components and elements in the following script. Using your word, explain how the page is rendered! function Welcome(props) { return h1> Hello, {props.


Identify the components and elements in the following script. Using your word, explain how the page is rendered! function Welcome(props) \{ return h1> Hello, \{props. name }/h1; \} function App() \{ return ( div Welcome name="Sara" / Welcome name="Cahal" / Welcome name="Edite" // div ); \} ReactDoM. render( App /, document. getElementById( 'root') ); Question 2: Use your creativity to add the following to the React app: - Add a list of your favourite movies: - Add some custom events to the page. Such as a button click. Identify the components and elements, and events in the following script. Explain how the page is rendered and events are handled using your word
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
