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