Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 472 Bytes

module_import.md

File metadata and controls

32 lines (20 loc) · 472 Bytes

Use quizdown as a ES6 Module

Quizdown can be imported into other projects. First install with:

npm install quizdown

And use it in your code to create a quiz app:

import { createApp } from 'quizdown'


let node = document.querySelector('.quizdown');
                   
let config = {
    'locale': 'de',
    'shuffleAnswers': false
}

let rawQuizdown = `

# This is awesome!

- [x] True
- [ ] False
`

createApp(rawQuizdown, node, config)