polarbear-react-components-npm
v1.0.3-v
Published
Polarbear react components
Downloads
15
Maintainers
Readme
React Question component package
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
For security, you must have a pi auth token and pass it the component.
Installing
npm install polarbear-react-components-npm -S
Overview
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"
/>
Props
id
Type: String
uuid of the question to be displayed
url
Type: String
Microservices url
authToken
Type: String
Unique pi auth token obtained from your application
onSuccess
Type: Function
Function invoked after the microservice fetch succeeds
onError
Type: Function
Function invoked after the microservice fetch fails
onRenderComplete
Type: Function
Function invoked after the component renders, which is the beginning of componentDidMount()
Authors
- Allen Walker [email protected] - Initial version -
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
- Hat tip to anyone who's code was used