New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-goog-ad

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-goog-ad

A Simple React component for Google AdSense and Baidu advertisement.

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

react-adsense

react-adsense is a React-component for Google AdSense / Baidu advertisement.

Build Status npm npm npm demo

1. Install

npm install --save react-adsense

Before use Google AdSense, you should add the script at the end of HTML.

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

2. Usage

import React from 'react';
import AdSense from 'react-adsense';

<AdSense.Google client='ca-pub-7292810486004926'
                slot='7806394673' />

// or

<AdSense.Google client='ca-pub-7292810486004926'
                slot='7806394673'
                style={{width: 500, height: 300, float: 'left'}}
                format='' />

3. TODO

  • Baidu advertisement supported.
  • Google sync adsense supported.

4. LICENSE

MIT

Keywords

react

FAQs

Package last updated on 19 Dec 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