Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

react-google-ads

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-google-ads

React component for google adsense

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

React Google Ads

A Component for google adsense

Getting Started

# Installation with package manager
$ yarn add react react-dom react-google-ads
# or..
$ npm i -S react react-dom react-google-ads

Development

$ npm run demo
  • access localhost:8888

Production Bundle

$ npm run bundle

How to Use

Parameters

ParameterTypeRemarks
clientstringRequired
slotstringRequired
styleobject-
formatstringdefault: 'auto'

Basic

import React from 'react';
import ReactDOM from 'react-dom';
import GoogleAds from '../src';

const appRoot = document.getElementById('google-adsense');

ReactDOM.render(
  <GoogleAds
    client=""
    slot=""
    style={{ display: 'inline-block', width: '100%', }}
  />, appRoot
);

Change Log

1.0.0

  • Initial release

1.0.2

  • Added className property to add custom class to <ins> tag.

1.0.3

  • migrate webpack
  • migrate babel preset

1.0.4

  • fix typos in README.md

1.0.5

  • add prop-types for react^16

Keywords

react

FAQs

Package last updated on 03 Apr 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