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

  Рет қаралды 87,646

GreatStack

GreatStack

Күн бұрын

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.c...
👉 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/iama...
Connect with GreatStack:
Instagram: / greatstackdev
Twitter: / greatstackdev
Facebook: / greatstack

Пікірлер: 88
@asriomar11
@asriomar11 Жыл бұрын
Easy to understand and follow even for beginner. Thanks.
@durgeshsingh6380
@durgeshsingh6380 10 ай бұрын
Excellent 👍
@AnnabelleSwan
@AnnabelleSwan 10 ай бұрын
Thank you so much! You are so great at explanation!!! Thanks a lot !
@User-lm4qq
@User-lm4qq 6 ай бұрын
You can use the result ternary operator only one time. Instead of returning empty div while result is true ,you can return the score and reset button
@theabundantartist2704
@theabundantartist2704 3 ай бұрын
What an amazing explanation sir! Waiting for more videos on full stack dev projects. Thank you :)
@GreatStackDev
@GreatStackDev 3 ай бұрын
Thank you so much.
@szymonfelski775
@szymonfelski775 10 ай бұрын
Great tutorial, thanks!
@lincholechisa6154
@lincholechisa6154 3 ай бұрын
really excellent project for beginner like me. Thank u bro!
@Mukhlisa-o2e
@Mukhlisa-o2e Ай бұрын
Thanks, really helped me understand different hooks in React
@yt_paperHANk
@yt_paperHANk 4 ай бұрын
finally, this is what I'm looking for, to cure my laziness
@ormondo1711
@ormondo1711 Ай бұрын
Great tutorial: 10 out of 10! Many thanks.
@Trim_Gaming_YT
@Trim_Gaming_YT Жыл бұрын
Am the first to like on this helpful video. Please give me likes. ❤❤❤
@pankajbeniwal988
@pankajbeniwal988 Жыл бұрын
For opening development server in browser, you can also just press 'o' and it will open in browser
@GreatStackDev
@GreatStackDev Жыл бұрын
I will try this shortcut, thanks for comment.
@narendrakumar709
@narendrakumar709 Жыл бұрын
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 9 ай бұрын
thanks a lot bro, greetings from Argentina
@hiteshchotaliya2865
@hiteshchotaliya2865 Ай бұрын
Nice to explain, Thanks
@muhammadusama7284
@muhammadusama7284 Жыл бұрын
completed .waiting for next video of react JS
@GreatStackDev
@GreatStackDev Жыл бұрын
Great! Please check this React Project playlist: kzbin.info/aero/PLjwm_8O3suyMMs7kfDD-p-yIhlmEgJkDj
@adityayadav-bh6wm
@adityayadav-bh6wm 5 ай бұрын
useRef(0) while initialisation of Option(s) at 30:45
@wordsfromheaven
@wordsfromheaven 3 ай бұрын
It didn't work o
@er.soumyavlogs
@er.soumyavlogs Жыл бұрын
Luv u brother❤
@GreatStackDev
@GreatStackDev Жыл бұрын
Thanks bro, Glad you liked this react project
@hamzazennou3178
@hamzazennou3178 10 ай бұрын
Perfect
@biologyfacts2760
@biologyfacts2760 6 ай бұрын
very easy to understand thank u so much
@oqant0424
@oqant0424 3 ай бұрын
Thank a ton:)
@rohinipatil8509
@rohinipatil8509 6 ай бұрын
Thank you so much sir
@deshanbandara4985
@deshanbandara4985 11 ай бұрын
Thank you brother ♥
@divyasingh6981
@divyasingh6981 Жыл бұрын
Thanks ❤️
@peterkyle01
@peterkyle01 7 ай бұрын
Awesome tutorial.
@prateeksharma3775
@prateeksharma3775 8 ай бұрын
good vedio but inorder to change state in question we have to use useeffect
@rublyn111
@rublyn111 Жыл бұрын
Happy I saw this early. Thanks man
@GreatStackDev
@GreatStackDev Жыл бұрын
Glad you liked this React Quiz app tutorial
@sandalbugen
@sandalbugen Ай бұрын
i am curious. how you can determined the ans just by the number?
@tech-xTinkerer
@tech-xTinkerer 7 ай бұрын
Nice video
@GreatStackDev
@GreatStackDev 7 ай бұрын
Glad you liked it. 😊
@mohamedabdi32006
@mohamedabdi32006 10 ай бұрын
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...
@abdullah-khan10
@abdullah-khan10 Жыл бұрын
Your tutorial are very helpful❤🇵🇰. Also make more content on react and next js
@rahulkumar12086
@rahulkumar12086 11 ай бұрын
Can anyone explain how he chosen correct and wrong option ?
@KillingsworthHaley
@KillingsworthHaley 8 ай бұрын
Why do you need two separate ternary operators that only have one half filled in? Why does it not work if you combine the two separate ternary operators into a single one?
@helloworld2054
@helloworld2054 7 ай бұрын
You don't need 2 ternary operators, it works completely fine with one ternary operator.
@vinuchakravarthineelakanda790
@vinuchakravarthineelakanda790 5 ай бұрын
why you use js instead of js + swc? can you explain this
@User-083-3
@User-083-3 7 күн бұрын
How to replace manual data to api URL
@sundareeshwarand
@sundareeshwarand Ай бұрын
why we using let instead of const
@ssikarim
@ssikarim 8 ай бұрын
Thanks
@shreyarani213
@shreyarani213 4 ай бұрын
The code is not working for correct answer color and wrong answer color
@wordsfromheaven
@wordsfromheaven 3 ай бұрын
Import UseRef and UseState
@MinhazFardin
@MinhazFardin Жыл бұрын
which theme are you using in vs code
@ultimategamer5136
@ultimategamer5136 7 ай бұрын
Do you have a report and source code for this I have to make this for my college mini project?
@sandalbugen
@sandalbugen Ай бұрын
how the correct answer just user number like 1, 5 4, and 2
@Code_Verse01
@Code_Verse01 7 ай бұрын
33:03
@hotshot6674
@hotshot6674 11 ай бұрын
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 9 ай бұрын
why doesn't it work if I put npm ? What should I do?
@bbieye
@bbieye Жыл бұрын
Awesome App! Do you share app code ? I looked google drive. I can see only questions.
@volkan9799
@volkan9799 Жыл бұрын
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 10 ай бұрын
@@volkan9799 Thanks this helped me
@omarbarbeir9887
@omarbarbeir9887 Жыл бұрын
There is error appears after make option array it says expected an assignment or function call and instead saw an expression
@Jon-tp6gr
@Jon-tp6gr 8 ай бұрын
Hey, did you ever figure out how to fix it I'm having the same problem.
@Codenow10222
@Codenow10222 9 ай бұрын
thanks for this video. please provide at least css source code it will help us to save time
@quotespower9911
@quotespower9911 Жыл бұрын
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 Жыл бұрын
Bare problem ko chote chote problem me break karo fir un chote problem ko solve karne ki kosish karo.
@helloworld2054
@helloworld2054 7 ай бұрын
Sabse pehle dekh dekhkar hi banao, phir code ko samjho, pura logic, code flow, kaise kya ho raha hai. Uske baad khud se try karo bina dekhe, try karte raho jab tak bann nahi jata
@oqant0424
@oqant0424 3 ай бұрын
23:00
@Asadullah-b1e4p
@Asadullah-b1e4p 9 ай бұрын
how intresting if we you create in tsx
@ponmugikumaresan5083
@ponmugikumaresan5083 4 ай бұрын
Error . useRef is not defined 😢
@sparsh-0384
@sparsh-0384 Жыл бұрын
For multiple li u can li*number of li u want
@GreatStackDev
@GreatStackDev Жыл бұрын
thanks for comment, it will help all viewers
@farispepic
@farispepic 7 ай бұрын
Where have source code for this project ?
@GreatStackDev
@GreatStackDev 7 ай бұрын
Please send me an email, will send you the source code.
@farispepic
@farispepic 7 ай бұрын
@@GreatStackDev i send but email is not send in comment
@JeanDamasceneBenimana
@JeanDamasceneBenimana Ай бұрын
we need your github page plse
@Code_Verse01
@Code_Verse01 7 ай бұрын
36:27
@rishavkumar6698
@rishavkumar6698 11 ай бұрын
can we get the source code
@technologytechnepal2391
@technologytechnepal2391 Жыл бұрын
How to make silent exploit using javascript
@nardoneleonard100
@nardoneleonard100 Жыл бұрын
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
@Kleolit
@Kleolit 10 ай бұрын
I need all your code
@marghoobalam9874
@marghoobalam9874 Жыл бұрын
can anyone provide me the Quiz.jsx code
@brest_brest
@brest_brest 11 ай бұрын
Give me the Code Please🥺🥺
@Azibek_
@Azibek_ 11 ай бұрын
Pchool nachooy
@zaynindiafans8503
@zaynindiafans8503 Жыл бұрын
Why you don't give source code with project?😅
@idevkr
@idevkr Жыл бұрын
All source code is provided to those who join this channel 🧑‍💻
@zaynindiafans8503
@zaynindiafans8503 Жыл бұрын
@@idevkr which channel???
@idevkr
@idevkr Жыл бұрын
@@zaynindiafans8503 youtube channel join button
@JustCoNa
@JustCoNa Жыл бұрын
@@zaynindiafans8503 definitely not the channel which posted this video
@HimanshuYelane-rc6gm
@HimanshuYelane-rc6gm 7 ай бұрын
bhai source code dete to accha hota
@SamuelMaiva
@SamuelMaiva Жыл бұрын
How can I contact you
@mohmmedkaifsakali4673
@mohmmedkaifsakali4673 Жыл бұрын
I want to talk to you regarding business purpose, how should I contact you...
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 966 М.
React Project: Build a Quiz App with React JS - Beginner Friendly Tutorial
23:37
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
How to make Quiz App using HTML,CSS and Java-Script
30:37
5 stars square
Рет қаралды 79
CORAN POUR DORMIR QUI APAISE LE COEUR (Recitation magnifique) 2021
1:31:41
DOUAA PROTECTION
Рет қаралды 18 МЛН
Learn CSS ::before and ::after in 4 Minutes
3:57
Coding2GO
Рет қаралды 261 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН