amamenko / react-buzzfeed-quiz Goto Github PK
View Code? Open in Web Editor NEWA BuzzFeed-style quiz component for React.js.
Home Page: https://react-buzzfeed-quiz.netlify.app
License: MIT License
A BuzzFeed-style quiz component for React.js.
Home Page: https://react-buzzfeed-quiz.netlify.app
License: MIT License
#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.
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.",
},
},```
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.