1
- # react-adsence
1
+ # react-adsense
2
2
3
3
4
- > react-adsence is a React-component for Google AdSence / Baidu advertisement.
4
+ > react-adsense is a React-component for Google AdSense / Baidu advertisement.
5
5
6
- [ ![ Build Status] ( https://travis-ci.org/hustcc/react-adsence .svg?branch=master )] ( https://travis-ci.org/hustcc/react-adsence ) [ ![ npm] ( https://img.shields.io/npm/v/react-adsence .svg?style=flat-square )] ( https://www.npmjs.com/package/react-adsence ) [ ![ npm] ( https://img.shields.io/npm/dt/react-adsence .svg?style=flat-square )] ( https://www.npmjs.com/package/react-adsence ) [ ![ npm] ( https://img.shields.io/npm/l/react-adsence .svg?style=flat-square )] ( https://www.npmjs.com/package/react-adsence ) [ ![ demo] (https://img.shields.io/badge/Live Demo-Click Here-ff69b4.svg)] ( http://git.hust.cc/react-adsence / )
6
+ [ ![ Build Status] ( https://travis-ci.org/hustcc/react-adsense .svg?branch=master )] ( https://travis-ci.org/hustcc/react-adsense ) [ ![ npm] ( https://img.shields.io/npm/v/react-adsense .svg?style=flat-square )] ( https://www.npmjs.com/package/react-adsense ) [ ![ npm] ( https://img.shields.io/npm/dt/react-adsense .svg?style=flat-square )] ( https://www.npmjs.com/package/react-adsense ) [ ![ npm] ( https://img.shields.io/npm/l/react-adsense .svg?style=flat-square )] ( https://www.npmjs.com/package/react-adsense ) [ ![ demo] (https://img.shields.io/badge/Live Demo-Click Here-ff69b4.svg)] ( http://git.hust.cc/react-adsense / )
7
7
8
8
9
9
# 1. Install
10
10
11
- > ** npm install react-adsence **
11
+ > ** npm install react-adsense **
12
12
13
- Before use Google AdSence , you should add the ` script ` at the end of HTML.
13
+ Before use Google AdSense , you should add the ` script ` at the end of HTML.
14
14
15
15
``` html
16
16
<script async src =" //pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" ></script >
@@ -20,14 +20,14 @@ Before use Google AdSence, you should add the `script` at the end of HTML.
20
20
21
21
``` js
22
22
import React from ' react' ;
23
- import AdSence from ' react-adsence ' ;
23
+ import AdSense from ' react-adsense ' ;
24
24
25
- < AdSence .Google client= ' ca-pub-7292810486004926'
25
+ < AdSense .Google client= ' ca-pub-7292810486004926'
26
26
slot= ' 7806394673' / >
27
27
28
28
// or
29
29
30
- < AdSence .Google client= ' ca-pub-7292810486004926'
30
+ < AdSense .Google client= ' ca-pub-7292810486004926'
31
31
slot= ' 7806394673'
32
32
style= {{width: 500 , height: 300 , float: ' left' }}
33
33
format= ' ' / >
@@ -37,7 +37,7 @@ import AdSence from 'react-adsence';
37
37
# 3. TODO
38
38
39
39
- ` Baidu ` advertisement supported.
40
- - ` Google ` sync adsence supported.
40
+ - ` Google ` sync adsense supported.
41
41
42
42
43
43
# 4. LICENSE
0 commit comments