1.0.4 • Published 3 years ago

react-simple-adsense v1.0.4

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

React Simple AdSense

It is a simple Google AdSense component for React

Getting Started

Installation

npm

npm i react-simple-adsense

yarn

yarn add react-simple-adsense

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import GoogleAdSense from 'react-simple-adsense';

ReactDOM.render(
  <GoogleAdSense
    html={
      '<ins class="adsbygoogle"\n' +
      'style="display:inline-block;width:728px;height:90px"\n' +
      'data-ad-client="YOUT_CLIENT_ID"\n' +
      'data-ad-slot="YOUR_AD_SLOT"></ins>'
    }
  />,
  document.getElementById('root')
);

Required Property

License

This project is licensed under the MIT License - see the LICENSE.md file for details