GithubHelp home page GithubHelp logo

amamenko / react-buzzfeed-quiz Goto Github PK

View Code? Open in Web Editor NEW
24.0 3.0 8.0 6.32 MB

A BuzzFeed-style quiz component for React.js.

Home Page: https://react-buzzfeed-quiz.netlify.app

License: MIT License

CSS 3.90% JavaScript 18.62% HTML 1.46% TypeScript 56.15% SCSS 19.86%
buzzfeed buzzfeed-font quiz personality personality-test questions answers questions-and-answers test proxima-nova

react-buzzfeed-quiz's People

Contributors

amamenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-buzzfeed-quiz's Issues

help wanted.

#helpwanted
Hello. Thanks for this app.
How do we keep track of all the answers?
Call back functions on answer selection() doesn't have reference to selected answer.

Invoking onRestart

hello Avi
I want to know how to invoke onRestart.
Label : #3 "help wanted"

I am trying a scenario. where there is only one question and 4 answer choices are given.
On incorrect answer, I will show text based from revealResponse prop

Any suggestions please?

Here is an example.

         question: <h1>  Here is some adjacent image text <YouTube videoId="-EQO6YMIzqg" opts={opts}/></h1>,
         questionRelativeToImage: "adjacent",
         fontColor: "gray",
         answerArrangement: "row",
         backgroundImageSrc: "https://storage.googleapis.com/chapters-ifm/testfolder/2022/delta_3d_2022.gif",
         answers: [
           {
             answer: "Answer one",
             resultID: 0,
                  revealResponse: {
                   title: (
                     <>
                       <h3 className="rbq_question_response_title">
                         Wrong answer!
                       </h3>
                        <button onClick={onRestart}> Retake </button>  <<<<HELP HERE PLEASE. This does not work>>>
                     </>
                   ),
                   description:
                     "Trigger your own answer response by setting an answer's revealResponse key. You can set a title and description value (either of which can be a string or a JSX element). You can also set an image and an image attribution statement.",
                  },
           },```

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.