1.4.0 • Published 5 years ago
feedbackwidget v1.4.0
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/feedbackwidget@0.1.1/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