@thercu-org/quiz
v1.1.6
Published
Library for using the RCU's quiz component
Downloads
3
Readme
quiz
Library for using the RCU's quiz component
Usage
import { makeQuiz } from "@thercu-org/quiz";
import "@thercu-org/quiz/index.css";
const Quiz = makeQuiz(
fetch,
'SOME_API_URL',
'SOME_API_KEY',
);
// ... then ...
export default () => (
<Quiz
afterCompleteLabel="LABEL FOR REDIRECT BUTTON"
afterCompleteUrl="URL FOR REDIRECT BUTTON"
clientId="THE_CLIENT_ID"
id="THE_QUIZ_ID"
userId="THE_USER_ID"
/>
);
Bundle for production
$ npm run build
Release package to NPM
First, make sure all code is pushed to Git, then run:
$ npm run release [version]
where [version]
is either major
, minor
, or patch
for example:
$ npm run release patch