react-satisfactor-web-integration

1.0.2 • Public • Published

react-satisfactor-web-integration

This package helps you integrate the satisfaction survey into any website implemented in react

NPM JavaScript Style Guide

Install

npm install --save react-satisfactor-web-integration

Usage

import React, { Component } from 'react'

import { Satisfactor, UserSurvey } from 'react-satisfactor-web-integration'

class Example extends Component {
  render () {
    const userSurvey = new UserSurvey({
      id: 589746,
      name: 'Testing Test',
      email: 'test@satisfactor.com',
      cellPhone: null,
      company: null,
    });
    return (
      <div>
        <Satisfactor projectToken='ybpK2y8bLaGaVRRuGfm3hP7nrRPzB6PX' userSurvey={userSurvey} />
      </div>
    )
  }
}

License

MIT ©

Readme

Keywords

none

Package Sidebar

Install

npm i react-satisfactor-web-integration

Weekly Downloads

6

Version

1.0.2

License

MIT

Unpacked Size

19.8 kB

Total Files

6

Last publish

Collaborators

  • serrano90