Skip to content

Commit 1e23e71

Browse files
authored
Merge pull request #205 from wingkwong/develop
0.8.0 Release
2 parents 5e95a87 + b499aa4 commit 1e23e71

File tree

14 files changed

+600
-348
lines changed

14 files changed

+600
-348
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## 0.8.0
4+
5+
- Bumped dependencies
6+
- Introduced Timer Support with Pause / Resume
7+
- Supported unanswered questions
8+
39
## 0.7.1
410

511
- Bumped dependencies

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ react-quiz-component is a ReactJS component allowing users to attempt a quiz.
2424
- Allow Picture in Question
2525
- Scoring System
2626
- Shuffling Questions / Answers
27+
- Timer Support
28+
- Support Pause/Resume Timer
29+
- Shows unanswered questions
2730

2831
## Installing
2932

@@ -258,6 +261,24 @@ import { quiz } from './quiz';
258261
<Quiz quiz={quiz} continueTillCorrect={true}/>
259262
```
260263

264+
265+
## Timer Feature
266+
267+
```js
268+
import { quiz } from './quiz';
269+
...
270+
<Quiz quiz={quiz} timer={60}/>
271+
```
272+
273+
274+
## Pause / Resume Timer Feature
275+
276+
```js
277+
import { quiz } from './quiz';
278+
...
279+
<Quiz quiz={quiz} timer={60} allowPauseTimer={true}/>
280+
```
281+
261282
## Props
262283

263284
|Name|Type|Default|Required|Description|
@@ -272,6 +293,8 @@ import { quiz } from './quiz';
272293
|continueTillCorrect|`boolean`|`false`|N|Continue to select an answer until it is correct|
273294
|onQuestionSubmit|`function`|`null`|N|A user response for a question will be returned|
274295
|disableSynopsis|`boolean`|`false`|N|Disable synopsis before quiz|
296+
|timer|`number`|`false`|N|Sets timer in seconds|
297+
|allowPauseTimer|`boolean`|`false`|N|Pause / Resume timer|
275298

276299
## Contribution
277300

dist/index.es.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)