Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 1 Consider a Course Management application suitable to read and display module details in a course. Attempt the following: 1) Create a React component

Task 1

Consider a Course Management application suitable to read and display module details in a course.

Attempt the following: 1) Create a React component UniversityCourseStudent.js. Using the props parameters, add the following attributes (String type) for the component: name, studentId, courseName, courseStartDate.

2)

As part of App.js create one instance of the UniversityCourseStudent component to display a student record in a course.

Use arbitrary data of your choice.

Task 2

Create a UI panel React component UniversityCourseModulePanel.js. Add the panel component to App.js. Attempt the following: 1)

Create Hook Expressions React.useState(''); to create setter methods for the attributes: moduleName, moduleCode, startDate, endDate, courseName.

2)

Add data entry text fields with data binding for the attributes (add onChange event handler for each text field).

3) Add a button event handler to read the data entered, in a window.alert pop up panel. [15 marks]

Task 3

1) Create a React Component Modules.js, to display modules in a course.

In the props for the component, provide Json data for the module instances to be displayed.

Use the array.map(item =>

  • ) operator to list the modules along with details. Add the component to App.js, providing arbitrary data of your choice for 3 modules to be

    displayed in the component.

    Task 4

    1) Modify your code for the button event handler in UniversityCourseModulePanel component, to display list of modules entered.

    Step by Step Solution

    There are 3 Steps involved in it

    Step: 1

    blur-text-image

    Get Instant Access to Expert-Tailored Solutions

    See step-by-step solutions with expert insights and AI powered tools for academic success

    Step: 2

    blur-text-image_2

    Step: 3

    blur-text-image_3

    Ace Your Homework with AI

    Get the answers you need in no time with our AI-driven, step-by-step assistance

    Get Started

    Recommended Textbook for

    Demystifying Databases A Hands On Guide For Database Management

    Authors: Shiva Sukula

    1st Edition

    8170005345, 978-8170005346

    More Books

    Students also viewed these Databases questions