Question: Show the code to create a stateful React component called Timer according to the following specification: The component must contain a state named count and



Show the code to create a stateful React component called Timer according to the following specification: The component must contain a "state" named count and initialize it 120. The value of the "state" count will be decreased by 1 every second until O is reached. The component renders the following template:
Count: COUNT
Where: o The "COUNT" is the value of the "state" count o When the "Reload" button is clicked, add 60 to the current value of the "state" count. Note: o Write the function to create the Timer component only no import or export statement is needed. Appropriate hooks discussed in class need to be used. o Complete the JSX code for a React project's root (App.js) component to provide "routing" options for the React application. We will assume that each view in the application has been created in its own component and BrowserRouter has been added to the index.js file surrounding the App component. The following describes each component and what "route" should be used to render them on the page:
Web Courses
on top, and for the course "WEB422", use the tags to make the text displayed in bold. Here are the results: Web Courses WEB222 - Web Programming Principles WEB322 - Web Programming Tools and Frameworks WEB422 - Web Programming for Apps and Services Note: Hard code is not allowed for rendering the array's elements. Class component syntax is not allowed. You must not edit or change your answer in the following text box on the test because it causes your markup code to be removed. So you should write your answer in other editor, then copy/paste your final answer to the following text box. 0 . Show the code to create a stateful React component called Timer according to the following specification: The component must contain a "state" named count and initialize it 120. The value of the "state" count will be decreased by 1 every second until O is reached. The component renders the following template: Count: COUNT
Where: o The "COUNT" is the value of the "state" count o When the "Reload" button is clicked, add 60 to the current value of the "state" count. Note: o Write the function to create the Timer component only no import or export statement is needed. Appropriate hooks discussed in class need to be used. o Complete the JSX code for a React project's root (App.js) component to provide "routing" options for the React application. We will assume that each view in the application has been created in its own component and BrowserRouter has been added to the index.js file surrounding the App component. The following describes each component and what "route" should be used to render them on the page: Web Courses
on top, and for the course "WEB422", use the tags to make the text displayed in bold. Here are the results: Web Courses WEB222 - Web Programming Principles WEB322 - Web Programming Tools and Frameworks WEB422 - Web Programming for Apps and Services Note: Hard code is not allowed for rendering the array's elements. Class component syntax is not allowed. You must not edit or change your answer in the following text box on the test because it causes your markup code to be removed. So you should write your answer in other editor, then copy/paste your final answer to the following text box. 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
