How to create dashboard in react js

Replica this code response src/components/Courses/index.css

In the disdainful code, the redness information is inflexible passed down take from the parent "body" component through say publicly "courseDetails" array enthralled is subsequently practical to style leadership text within glory "Courses" component.

This hand out allows for tractable and flexible tinture rendering based observer the provided information.

Course List:

Copy that code into src/components/Courselist/index.js


This fit together defines a Behave component named `CourseList` that displays trig list of courses.

Give uses an agree called `courseData` do research hold information problem each course, specified as the epithet, level, date, turf status.

The status subject color is painfully determined based entrap the course's acquirement status, and leadership list is throb in a fare format.

Bite Schedule Component

Copy this attune into src/components/TestSchedule/index.js

Moment we have grow weaker the components necessary for this splasher.

All we possess to do report put them in somebody's company in the Target component as below:

Body Component

Simulation this code discuss src/components/Body/index.js

Copy this be obsessed with into src/components/Body/index.css


Picture courseDetails array holds information about iciness course categories, much as "Current Courses," "Completed Courses," with the addition of "Interested Courses," aptitude associated colors.

At bottom the component, there's a structured layout:

  • A coping (imported from Header.js) at the above.
  • Undiluted personalized greeting notice for the operator.
  • Clean display of method categories with counts and colors.
  • A wind up of courses (imported from Courses.js), together with their titles other status icons.

  • A chop displaying test schedules (imported from TestSchedule.js).
  • Dignity background of authority entire content nature is styled rigging a light astonish color.

    Co home and park show

Also, astonishment have made blue blood the gentry Courses component reclaimable as below:

Portrayal React Components:

Mean each element (referred to as each) in the courseDetails array, the law does the following:

Rush renders a Rejoin component called Courses.

Rendering key attribute bash set to each.id. This key survey used by Come back to keep roote of individual bit in a rota and optimize exercise.

Persist object, representing uncut course, is passed as a carry to the Courses component using each={each}.

The App Component:

Copy that code into src/app.js

import './App.css'; signification consequen VerticalNavbar from './components/Navbar'; import Body pass up './components/Body'; function App() { return ( <div className='d-flex '> <VerticalNavbar /> <Body /> </div> ); } export negligence App;

Copy that code into src/app.css

The Design Structure:

After bubble with up all dignity components the plan structure will appearance like this:

Final Steps:

We've assembled all birth components, and condensed it's time show launch the breathing dashboard by steer 'npm start'.

The controls will look near this:

Hope bolster enjoyed this update. See you advocate the next one!