Master de II. ULL. 1er cuatrimestre. 2020/2021
create-react-app
to create the initial structure of your app.UserInput
and UserOutput
UserInput
should hold an input element, UserOutput
two paragraphsUserOutput
components in the App
component (any paragraph texts of your choice)username
(of your choice) to UserOutput
via props and display it thereApp
component (=> the username) and pass the username
to the UserOutput
componentevent-handler
method)event-handler
method reference to the UserInput
component and bind it to the input-change
eventusername
passed to UserOutput
UserInput
) to also display the starting username
Here is a solution to the problem: