These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
For security, you must have a pi auth token and pass it the component.
npm install polarbear-react-components-npm -S
import Question from 'polarbear-react-components-npm'
<Question id='5a84df97e4b07b238e412b1c' url='polarbear.dev-prsn.com' authToken="eyJraWQiOiJrMTA2OTQ4MTkwIiwiYWxnIjoiUlM1MTIifQ.eyJzdWIiOiJmZmZmZmZmZjUzN2UxNGJjZTRiMGRhMTdiODQwZjY3NCIsImhjYyI6IlVTIiwidHlwZSI6ImF0IiwiZXhwIjoxNTE4NjU5MjIyLCJpYXQiOjE1MTg2NTc0MjEsImNsaWVudF9pZCI6Ikhlc2F0Q2V2bnFmRnc2VDJVQU5PWHZXTDNQT0QwcFVxIiwic2Vzc2lkIjoiYWU2N2E5YWUtZTUyOS00MjcwLTgxMjQtNmNlZTU2NTcwNzZhIn0.Iws_A9ZLrQwzXuicwteJ5ZSLD23u1Joj9F_tQHd1izEp6rKiE06ivqe852nGaJVf4fkRurCiKd0exIkcOR16X-fIC_erV6CD5vM6GZ-p6EOVzR439g20iPkHgC9N8XlHSkprDG8Z_ir4ioACE1h8KgmnnOVk8XoNkhBfluSkct0"
/>
Type: String
uuid of the question to be displayed
Type: String
Microservices url
Type: String
Unique pi auth token obtained from your application
Type: Function
Function invoked after the microservice fetch succeeds
Type: Function
Function invoked after the microservice fetch fails
Type: Function
Function invoked after the component renders, which is the beginning of componentDidMount()
- Allen Walker allen.walker@pearson.com - Initial version -
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone who's code was used