🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

react-pr

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-pr

React module for Power Reviews

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm i -S react-power-reviews
yarn add react-power-reviews

Usage

There are five different Review components: ReviewSnippet, ReviewDisplay, ReviewSnapshot,ReviewList, WriteReview.

import React, { Component } from 'react'
import PowerReviews from 'react-power-reviews' // You can also destructure each component out if you would like (e.g. import { ReviewSnippet } from 'react-power-reviews')

export default class Index extends Component {
  render() {
    // all will need this same config just change the component
    return (
      <PowerReviews.ReviewSnippet
        apiKey={`Your Api Key`}
        merchantGroupId={`Your Merchant Group Id`}
        merchantId={`Your Merchant`}
        pageId={`Your Page Id (usually product sku)`}
        wrapperUrl={`Page which you write reviews on`}
      />
    )
  }
}

Keywords

react

FAQs

Package last updated on 30 Aug 2018

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