davidrayoussef / react-quiz Goto Github PK
View Code? Open in Web Editor NEWA JavaScript quiz built with React.
License: MIT License
A JavaScript quiz built with React.
License: MIT License
I think the problem is that the Answer.js li
element isn't always in focus and then its onKeyDown handler does not get called.
I recently used a very old laptop where a quiz based on yours took 17 seconds to build.
However even as a React beginner, I found it really painless to switch from Webpack to Vite, which was much faster (500 milliseconds reported, however it still took some time that was not included in the measurement).
This allowed me to remove many dependencies, such as Babel, so that the size of the bundle was smaller as well.
If you are interested to do that in your Quiz as well, you can take a look at https://github.com/snikproject/quiz, especially package.json
and vite.config.js
.
I can also create a pull request if you want.
I'm trying to extend your code for our quiz but I'm learning React for it now. Can you help me understand what the purpose is of doing state = {...this.getInitialState(this.props.totalQuestions)};
and not just state = this.getInitialState(this.props.totalQuestions);
? It is in line 10 of the file QuizApp.js
.
Is this code outdated? I was trying to extend this to part of my webpage's functionality but it seems like this doenst even run at all. I followed the instruction on readme
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.