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

  Рет қаралды 81,198

GreatStack

GreatStack

Күн бұрын

Пікірлер: 81
@asriomar11
@asriomar11 11 ай бұрын
Easy to understand and follow even for beginner. Thanks.
@lincholechisa6154
@lincholechisa6154 2 ай бұрын
really excellent project for beginner like me. Thank u bro!
@theabundantartist2704
@theabundantartist2704 2 ай бұрын
What an amazing explanation sir! Waiting for more videos on full stack dev projects. Thank you :)
@GreatStackDev
@GreatStackDev 2 ай бұрын
Thank you so much.
@AnnabelleSwan
@AnnabelleSwan 9 ай бұрын
Thank you so much! You are so great at explanation!!! Thanks a lot !
@durgeshsingh6380
@durgeshsingh6380 8 ай бұрын
Excellent 👍
@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.
@User-lm4qq
@User-lm4qq 5 ай бұрын
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
@adityayadav-bh6wm
@adityayadav-bh6wm 3 ай бұрын
useRef(0) while initialisation of Option(s) at 30:45
@wordsfromheaven
@wordsfromheaven 2 ай бұрын
It didn't work o
@szymonfelski775
@szymonfelski775 9 ай бұрын
Great tutorial, 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
@yt_paperHANk
@yt_paperHANk 2 ай бұрын
finally, this is what I'm looking for, to cure my laziness
@lucianodeniro6475
@lucianodeniro6475 7 ай бұрын
thanks a lot bro, greetings from Argentina
@TrimPUBG
@TrimPUBG Жыл бұрын
Am the first to like on this helpful video. Please give me likes. ❤❤❤
@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.
@oqant0424
@oqant0424 Ай бұрын
Thank a ton:)
@hamzazennou3178
@hamzazennou3178 9 ай бұрын
Perfect
@biologyfacts2760
@biologyfacts2760 5 ай бұрын
very easy to understand thank u so much
@er.soumyavlogs
@er.soumyavlogs Жыл бұрын
Luv u brother❤
@GreatStackDev
@GreatStackDev Жыл бұрын
Thanks bro, Glad you liked this react project
@abdullah-khan10
@abdullah-khan10 Жыл бұрын
Your tutorial are very helpful❤🇵🇰. Also make more content on react and next js
@rohinipatil8509
@rohinipatil8509 5 ай бұрын
Thank you so much sir
@peterkyle01
@peterkyle01 6 ай бұрын
Awesome tutorial.
@divyasingh6981
@divyasingh6981 Жыл бұрын
Thanks ❤️
@rublyn111
@rublyn111 Жыл бұрын
Happy I saw this early. Thanks man
@GreatStackDev
@GreatStackDev Жыл бұрын
Glad you liked this React Quiz app tutorial
@prateeksharma3775
@prateeksharma3775 7 ай бұрын
good vedio but inorder to change state in question we have to use useeffect
@deshanbandara4985
@deshanbandara4985 9 ай бұрын
Thank you brother ♥
@tech-xTinkerer
@tech-xTinkerer 6 ай бұрын
Nice video
@GreatStackDev
@GreatStackDev 6 ай бұрын
Glad you liked it. 😊
@mohamedabdi32006
@mohamedabdi32006 9 ай бұрын
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...
@shreyarani213
@shreyarani213 2 ай бұрын
The code is not working for correct answer color and wrong answer color
@wordsfromheaven
@wordsfromheaven 2 ай бұрын
Import UseRef and UseState
@KillingsworthHaley
@KillingsworthHaley 6 ай бұрын
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 6 ай бұрын
You don't need 2 ternary operators, it works completely fine with one ternary operator.
@Code_Verse01
@Code_Verse01 6 ай бұрын
33:03
@MinhazFardin
@MinhazFardin Жыл бұрын
which theme are you using in vs code
@vinuchakravarthineelakanda790
@vinuchakravarthineelakanda790 4 ай бұрын
why you use js instead of js + swc? can you explain this
@ssikarim
@ssikarim 7 ай бұрын
Thanks
@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 8 ай бұрын
@@volkan9799 Thanks this helped me
@oqant0424
@oqant0424 Ай бұрын
23:00
@ultimategamer5136
@ultimategamer5136 5 ай бұрын
Do you have a report and source code for this I have to make this for my college mini project?
@rahulkumar12086
@rahulkumar12086 9 ай бұрын
Can anyone explain how he chosen correct and wrong option ?
@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 7 ай бұрын
Hey, did you ever figure out how to fix it I'm having the same problem.
@LeanAlcala-fu7vq
@LeanAlcala-fu7vq 8 ай бұрын
why doesn't it work if I put npm ? What should I do?
@sundareeshwarand
@sundareeshwarand 2 күн бұрын
why we using let instead of const
@hotshot6674
@hotshot6674 9 ай бұрын
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? ;-;
@Codenow10222
@Codenow10222 8 ай бұрын
thanks for this video. please provide at least css source code it will help us to save time
@Asadullah-b1e4p
@Asadullah-b1e4p 8 ай бұрын
how intresting if we you create in tsx
@ponmugikumaresan5083
@ponmugikumaresan5083 3 ай бұрын
Error . useRef is not defined 😢
@quotespower9911
@quotespower9911 11 ай бұрын
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 10 ай бұрын
Bare problem ko chote chote problem me break karo fir un chote problem ko solve karne ki kosish karo.
@helloworld2054
@helloworld2054 6 ай бұрын
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
@farispepic
@farispepic 5 ай бұрын
Where have source code for this project ?
@GreatStackDev
@GreatStackDev 5 ай бұрын
Please send me an email, will send you the source code.
@farispepic
@farispepic 5 ай бұрын
@@GreatStackDev i send but email is not send in comment
@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
@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
@Code_Verse01
@Code_Verse01 6 ай бұрын
36:27
@brest_brest
@brest_brest 10 ай бұрын
Give me the Code Please🥺🥺
@Azibek_
@Azibek_ 10 ай бұрын
Pchool nachooy
@technologytechnepal2391
@technologytechnepal2391 Жыл бұрын
How to make silent exploit using javascript
@rishavkumar6698
@rishavkumar6698 10 ай бұрын
can we get the source code
@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
@marghoobalam9874
@marghoobalam9874 11 ай бұрын
can anyone provide me the Quiz.jsx code
@Kleolit
@Kleolit 8 ай бұрын
I need all your code
@HimanshuYelane-rc6gm
@HimanshuYelane-rc6gm 6 ай бұрын
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...
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 871 М.
React Project: Build a Quiz App with React JS - Beginner Friendly Tutorial
23:37
HTML CSS Project for Beginners. Build a Nike Website Using HTML & CSS
27:44