Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-playbuzz

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-playbuzz

React component to render an embeded PlayBuzz game

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

react-playbuzz Build Status codecov

React component to render an embeded PlayBuzz game. How to embed a PlayBuzz game

Install

To install and use this component:

yarn add react-playbuzz

or you can do it with npm also:

npm install react-playbuzz

Usage

Just import the PlayBuzz component from the react-playbuzz package and use it as a simple react component.

import React from 'react';
import ReactDOM from 'react-dom';
import PlayBuzz from 'react-playbuzz';

ReactDOM.render(
  <PlayBuzz
    url='http://www.playbuzz.com/peepersc10/who-is-your-favorite-super-hero'
    load={true}
    options={{
      shares: true
    }}
  />,
  document.getElementById('root')
);

Properties

NameTypeDescriptionSampleDefault
urlstringGame URL"http://www.playbuzz.com/peepersc10/who-is-your-favorite-super-hero"""
loadboolLoad playbuzz script async from cdn if its not already loadedtruefalse
heightintComponent height in pixels250null
recommendboolDisplay recommendations for more itemstruefalse
gameInfoboolDisplay item info (the thumbnail, name, description and editor)truefalse
commentsboolUse facebook commentstruefalse
sharesboolDisplay share buttons (will redirect to your page)truefalse

The load property add a script tag asynchronously to the end of the body tag: //cdn.playbuzz.com/widget/feed.js. Only if it is not already loaded.

Demo

To run a demonstration, clone this project, install it locally and start the demo server:

yarn
npm start

or

npm i
npm start

You may see a message: Listening at http://localhost:3000. Then go to your browser and check it out: http://localhost:3000/demo.

Testing

This projects uses jest, enzime and jsdom for testing. To run the tests:

npm test

Keywords

FAQs

Package last updated on 19 Mar 2017

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