An open API service indexing awesome lists of open source software.

https://github.com/blocto/quiz

Quiz component for Blocto blockchain guide
https://github.com/blocto/quiz

Last synced: 4 months ago
JSON representation

Quiz component for Blocto blockchain guide

Awesome Lists containing this project

README

        

# Quiz Component [![npm](https://img.shields.io/npm/v/@portto/quiz/latest)](https://www.npmjs.com/package/@portto/quix)
Quiz component for blockchain guide

## Setup

Add `@portto/quiz` to your react project through `yarn` or `npm`

```sh
# Install through yarn, recommended
yarn add @portto/quiz

# or install through npm
npm install @portto/quiz --save
```

Then in your project you can use it like

```javascript
import React from 'react';
import Quiz from '@portto/quiz';
import { fromJS } from 'immutable';

const SampleReward = () => {
const [isQuizActive, setQuizActive] = useState(false)

const stopQuiz = () => {
setQuizActive(false);
};
const completeQuiz = () => {
// Send reward
setQuizActive(false);
};

return (


Claim your rewards now.',
submit: 'Submit',
}}
/>

);
}

export default SampleReward;
```