0.0.1 • Published 8 years ago
react-adsence v0.0.1
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
0.0.1
8 years ago