How To Make A Quiz App In React JS | Build Quiz App Using HTML, CSS and React JS

Поделиться
HTML-код
  • Опубликовано: 28 ноя 2023
  • Learn How To Make A Quiz App In React JS | Build Quiz App React JS Project Step by Step.
    ❤️ SUBSCRIBE: @GreatStackDev
    In this tutorial we will learn to make a quiz website or app using React JS. In this quiz app you can update your own questions and multiple options. This React JS Project Quiz app will display the score after submitting the answers for all questions.
    Download the assets: drive.google.com/file/d/1UNqd...
    👉 React Introduction Tutorial: • What Is React (React J...
    👉 React Complete tutorial for Beginners: • React JS Tutorial For ...
    #ReactJS #ReactJsTutorial #WebDevelopment #GreatStack
    -------------------------------------
    Build more React JS projects:
    Complete Portfolio Website In React:
    👉 • How To Make Portfolio ...
    Build ChatGPT Clone In React:
    👉 • Build ChatGPT In React...
    Build AI Image Generator with OpenAI In React
    👉 • Build An AI Image Gene...
    Create Weather App In React
    👉 • How To Create Weather ...
    -------------------------------------
    Recommended Videos:
    Learn Complete HTML and CSS from basics:
    ► • HTML And CSS Tutorial ...
    Make A Complete Website for college using HTML & CSS:
    ► • How To Make A College ...
    How to make personal resume website step by step:
    ► • How To Make A Website ...
    How to make an Ecommerce Website Design:
    ► • How To Make eCommerce ...
    How to make travel website design with HTML CSS Bootstrap:
    ► • How To Make A Website ...
    -------------------------------------
    Connect with me:
    👉 linktr.ee/iamavinashkr
    Connect with GreatStack:
    Instagram: / greatstackdev
    Twitter: / greatstackdev
    Facebook: / greatstack

Комментарии • 51

  • @asriomar11
    @asriomar11 4 месяца назад +6

    Easy to understand and follow even for beginner. Thanks.

  • @AnnabelleSwan
    @AnnabelleSwan Месяц назад

    Thank you so much! You are so great at explanation!!! Thanks a lot !

  • @pankajbeniwal988
    @pankajbeniwal988 5 месяцев назад +8

    For opening development server in browser, you can also just press 'o' and it will open in browser

    • @GreatStackDev
      @GreatStackDev  5 месяцев назад +1

      I will try this shortcut, thanks for comment.

  • @szymonfelski775
    @szymonfelski775 Месяц назад

    Great tutorial, thanks!

  • @divyasingh6981
    @divyasingh6981 5 месяцев назад +1

    Thanks ❤️

  • @deshanbandara4985
    @deshanbandara4985 2 месяца назад

    Thank you brother ♥

  • @narendrakumar709
    @narendrakumar709 5 месяцев назад +1

    Excellent tutorial. but one good practice but not that much important , we can add setLock(true) after lock===false line, no need to repeat it.

  • @lucianodeniro6475
    @lucianodeniro6475 3 дня назад

    thanks a lot bro, greetings from Argentina

  • @durgeshsingh6380
    @durgeshsingh6380 Месяц назад +1

    Excellent 👍

  • @hamzazennou3178
    @hamzazennou3178 Месяц назад +1

    Perfect

  • @rublyn111
    @rublyn111 5 месяцев назад

    Happy I saw this early. Thanks man

    • @GreatStackDev
      @GreatStackDev  5 месяцев назад

      Glad you liked this React Quiz app tutorial

  • @er.soumyavlogs
    @er.soumyavlogs 5 месяцев назад +1

    Luv u brother❤

    • @GreatStackDev
      @GreatStackDev  5 месяцев назад

      Thanks bro, Glad you liked this react project

  • @muhammadusama7284
    @muhammadusama7284 5 месяцев назад +6

    completed .waiting for next video of react JS

    • @GreatStackDev
      @GreatStackDev  5 месяцев назад +1

      Great! Please check this React Project playlist: ruclips.net/p/PLjwm_8O3suyMMs7kfDD-p-yIhlmEgJkDj

  • @mohamedabdi6752
    @mohamedabdi6752 Месяц назад +1

    Salam bro you're the best thanks for your help.
    Please can you make us one video About Contact js and search js for our website...

  • @user-jp2mf7sd7u
    @user-jp2mf7sd7u 4 месяца назад

    which theme are you using in vs code

  • @nardoneleonard100
    @nardoneleonard100 5 месяцев назад +1

    what if .. I don't want to add the next button. it atomically switch to the next question when any answer I selected … please help

  • @prateeksharma3775
    @prateeksharma3775 5 часов назад

    good vedio but inorder to change state in question we have to use useeffect

  • @ShiraziPUBG
    @ShiraziPUBG 5 месяцев назад +3

    Am the first to like on this helpful video. Please give me likes. ❤❤❤

  • @abdullah-khan10
    @abdullah-khan10 5 месяцев назад +2

    Your tutorial are very helpful❤🇵🇰. Also make more content on react and next js

  • @omarbarbeir9887
    @omarbarbeir9887 5 месяцев назад

    There is error appears after make option array it says expected an assignment or function call and instead saw an expression

  • @hotshot6674
    @hotshot6674 2 месяца назад

    How do I add a menu at the beginning where I could choose from different quiz categories? I tried to add it with Chat GPT but it was not able to fix it. Help? ;-;

  • @LeanAlcala-fu7vq
    @LeanAlcala-fu7vq 18 дней назад

    why doesn't it work if I put npm ? What should I do?

  • @praagyajain3041
    @praagyajain3041 17 дней назад

    thanks for this video. please provide at least css source code it will help us to save time

  • @bbieye
    @bbieye 5 месяцев назад

    Awesome App!
    Do you share app code ? I looked google drive. I can see only questions.

    • @volkan9799
      @volkan9799 5 месяцев назад +1

      there is my code bro:
      import { useState } from "react";
      import "./Quiz.css";
      import { data } from "../../assets/data";
      const Quiz = () => {
      let [index, setIndex] = useState(0);
      let [questions, setQuestions] = useState(data[index]);
      let [lock, setLock] = useState(false);
      let [score, setScore] = useState(0);
      let [result, setResult] = useState(false);
      const openCorrect = (index) => {
      document.querySelectorAll("li")[index - 1].classList.add("correct");
      };
      const checkAns = (e, ans) => {
      if (lock === false) {
      if (questions.ans === ans) {
      e.target.classList.add("correct");
      setScore((prev) => prev + 1);
      } else {
      e.target.classList.add("wrong");
      openCorrect(questions.ans);
      }
      setLock(true);
      }
      };
      const clearAns = () => {
      document.querySelectorAll("li").forEach((li) => {
      li.classList = "";
      });
      };
      const next = () => {
      if (index === data.length - 1) {
      setResult(true);
      return;
      }
      if (lock === true) {
      clearAns();
      setIndex(++index);
      setQuestions(data[index]);
      setLock(false);
      }
      };
      const reset = () => {
      setIndex(0);
      setQuestions(data[0]);
      setScore(0);
      setLock(false);
      setResult(false);
      };
      return (
      Quiz App
      {result ? (

      You scored {score} out of {data.length}

      Reset

      ) : (

      {index + 1}. {questions.question}

      {
      checkAns(e, 1);
      }}
      >
      {questions.option1}
      {
      checkAns(e, 2);
      }}
      >
      {questions.option2}
      {
      checkAns(e, 3);
      }}
      >
      {questions.option3}
      {
      checkAns(e, 4);
      }}
      >
      {questions.option4}

      Next

      {index + 1} of {data.length} questions

      )}
      );
      };
      export default Quiz;

    • @SSJwalker
      @SSJwalker Месяц назад

      @@volkan9799 Thanks this helped me

  • @guptaswork1695
    @guptaswork1695 3 месяца назад +1

    Bro... I tried to do it but the Last question for is not allowing to choose option and move to next score page ? Please help

    • @JagmeetSingh-ym6jj
      @JagmeetSingh-ym6jj 2 месяца назад

      I tried it and it’s working.
      You should recheck your code

  • @user-je9xt9gs9c
    @user-je9xt9gs9c 29 дней назад

    how intresting if we you create in tsx

  • @rahulkumar12086
    @rahulkumar12086 2 месяца назад

    Can anyone explain how he chosen correct and wrong option ?

  • @technologytechnepal2391
    @technologytechnepal2391 5 месяцев назад

    How to make silent exploit using javascript

  • @sparsh-0384
    @sparsh-0384 5 месяцев назад +1

    For multiple li u can li*number of li u want

    • @GreatStackDev
      @GreatStackDev  5 месяцев назад

      thanks for comment, it will help all viewers

  • @quotespower9911
    @quotespower9911 3 месяца назад +1

    Bhai me jab yeh simple sa bana rha tha muje 3 hours lag gye aur kuch bhi nahi bana . Bro logic hi nhi bann par rha tha . Bhai bahut demotivate ho jaata hu ek basic sa project nahi bann pata lekin jab koi videos dekhta hu toh pata lagta ha kitna basic logic tha me kyu nahi kr paaya

    • @chetankumar9463
      @chetankumar9463 3 месяца назад +1

      Bare problem ko chote chote problem me break karo fir un chote problem ko solve karne ki kosish karo.

  • @rishavkumar6698
    @rishavkumar6698 2 месяца назад

    can we get the source code

  • @marghoobalam9874
    @marghoobalam9874 3 месяца назад

    can anyone provide me the Quiz.jsx code

  • @zaynindiafans8503
    @zaynindiafans8503 5 месяцев назад +2

    Why you don't give source code with project?😅

    • @idevkr
      @idevkr 5 месяцев назад

      All source code is provided to those who join this channel 🧑‍💻

    • @zaynindiafans8503
      @zaynindiafans8503 5 месяцев назад

      @@idevkr which channel???

    • @idevkr
      @idevkr 5 месяцев назад

      @@zaynindiafans8503 youtube channel join button

    • @JustCoNa
      @JustCoNa 5 месяцев назад

      @@zaynindiafans8503 definitely not the channel which posted this video

  • @a4_fan_like
    @a4_fan_like 2 месяца назад +1

    Give me the Code
    Please🥺🥺

    • @Azibek_
      @Azibek_ 2 месяца назад

      Pchool nachooy

  • @Kleolit
    @Kleolit Месяц назад

    I need all your code

  • @user-qo2zl4bi9k
    @user-qo2zl4bi9k 5 месяцев назад

    How can I contact you

  • @mohmmedkaifsakali4673
    @mohmmedkaifsakali4673 5 месяцев назад

    I want to talk to you regarding business purpose, how should I contact you...