JSPM

react-adsence

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q15160F
  • License MIT

A Simple React component for Google AdSence and Baidu advertisement.

Package Exports

  • react-adsence

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-adsence) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-adsence

react-adsence is a React-component for Google AdSence / Baidu advertisement.

Build Status npm npm npm

1. Install

npm install react-adsence

2. Usage

import React from 'react';
import AdSence from 'react-adsence';

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

// or

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

3. TODO

  • Baidu advertisement supported.
  • Google sync adsence supported.

4. LICENSE

MIT