Giter VIP home page Giter VIP logo

10-question-quiz-game's Introduction

10 question quiz game1.0 based on react-redux

View demo

Introduction

The app is an web quiz game, which gives you true false questions. Displays answers, scores, explanations at the end of the game. One can re-start the game at the end.

Get Started

Dependencies already included in the project directory. Locate the project directory, then you can run:

npm start

Technology

Implemented using react-redux. Included a light weight redux that includes necessary update actions.

Problems To be Evolved

UI

The design of UI can be evolved. Currently a simple interface displays necassary information.

Question Base

Currently application holds a static question set which has 10 questions. Later, can include more questions in the set, and randomly choose amongest them. Meanwhile, shuffle the questions when restart.

Redux

quiz-game-react1.0 includes light weight redux that contains necessary updates, and holds store that contains state as global. The problem is high coupling. Props are passed through each child component. If developing large scale application, some intermediate components might not need those props. But for this app, the problem is negligible. Better solution would be using context OR using provider+connect for components to fetch states more easily, states do not need to be passed through each intermediate components. Quiz-game-react2.0 uses provider+connect, to be posted.

Notes

For this app, in terms of the scale, there are several choices: 1, develop without redux, hanle states within react components. abstract UI layer and state management intertwined together, once scale groups, logic becomes unclear. Needs high level state management. 2, include lightweight redux, handle all state changes in reducer. results in lightweight components. All state changes included in reducer. easy to debug and evolve 3, use context, pvovider+connect to pass props within components.

10-question-quiz-game's People

Contributors

jimjimliu avatar

Watchers

James Cloos avatar  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.