New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@smiledev/react-web-feedback

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smiledev/react-web-feedback

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

  • 0.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Using React

Installation

  • Install from NPM
npm install @smiledev/react-web-feedback@latest

Usage

  • Import FeedbackButton and handlers (optional) in your project. Prop token is provided by Smile.
import FeedbackButton from "@smiledev/react-web-feedback"

<FeedbackButton token={'******'} />

Handlers

You can interact with Smile Feedback with the following handlers

showModal

Shows the Feedback modal.

import { showModal } from "@smiledev/react-web-feedback";

showModal(); // Open modal

hideModal

Hides the Feedback modal.

import { hideModal } from "@smiledev/react-web-feedback";

hideModal(); // Hide modal

getUserContext

Returns the user context currently known by Feedback Button.

import { getUserContext } from "@smiledev/react-web-feedback";

getUserContext(); // { ... }

setUserContext

Updates the user context to Feedback Button.

import { setUserContext } from "@smiledev/react-web-feedback";

setUserContext({
  id: 1,
  first_name: 'Bruce',
  last_name: 'Wayne'
});

FAQs

Package last updated on 17 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc