Giter Site home page Giter Site logo

course-registration's Introduction

my-course-roster-NFRIDOY

React + Vite + TailwindCSS + DaisyUI

Github Link- https://github.com/programming-hero-web-course2/my-course-roster-NFRIDOY Live Link- https://murky-night.surge.sh/

Questions

Questions 1:- Add at least 3 Project features

  1. This project has the feature of selecting courses and added to course list (cart).
  2. It has the feature of giving alart when you exceed the course credit hour limit. Limit is 20 hrs
  3. It has the feature of show the remaining credit hour and total Price of all courses combind.

Questions 2:- Discuss how you managed the state in your assignment project.

I have used sevrel State in this project. By calling state i mean useState hook.

I declared a useState in Main.jsx for maintaine selected Cousers. Main.jsx is the Parent component of two child components ex. Cards.jsx and Cart.jsx. This useStates' set Function is set insine the child of Cards.jsx Card.jsx. The set function is set on onClick Select Button. From their useState of Main.jsx is updating the selected array. Then the value is send as props in Cart.jsx component. In the Cart.jsx component the selected array list is shown.

I declared another useState in Cards.jsx for soring data form fake CourseData.json. ~~~ const [courses, setCourses]= useState([]); ~~~ Here setCourse is setting data in the cousers. And cousers variable is using for genarage Card component and passing props in that compnent.

I declared another useState in Cart.jax component storing remaining credits.

course-registration's People

Contributors

nfridoy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.