feedbackwidget
v1.4.0
Published
Client-library for feedbackwidget.io.
Downloads
3
Readme
feedbackwidget-lib
Install
npm install --save feedbackwidget-lib
Usage
- Use the API and components directly.
import React from 'react';
import {ContactForm} from 'feedbackwidget-lib';
React.render(<ContactForm />)
- As global JavaScript (without dependencies)
<script src="https://unpkg.com/[email protected]/dist/index.js"></script>
<script>
Feedbackwidget.initGlobalApi('{{widget.id}}', {...options});
Feedbackwidget.ContactForm.render(document.body, {...options});
</script>
- With your own global React
- With your own global Preact