Skip to content

Commit 3c5335e

Browse files
author
hustcc
committed
adsence -> adsense
1 parent 01cafe0 commit 3c5335e

File tree

11 files changed

+76
-20338
lines changed

11 files changed

+76
-20338
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"presets": ["react", "es2015"],
3-
"plugins": ["transform-es3-member-expression-literals", "transform-es3-property-literals"],
3+
"plugins": [],
44
"env": {
55
"development": {
66
}

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# react-adsence
1+
# react-adsense
22

33

4-
> react-adsence is a React-component for Google AdSence / Baidu advertisement.
4+
> react-adsense is a React-component for Google AdSense / Baidu advertisement.
55
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/)
77

88

99
# 1. Install
1010

11-
> **npm install react-adsence**
11+
> **npm install react-adsense**
1212
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.
1414

1515
```html
1616
<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.
2020

2121
```js
2222
import React from 'react';
23-
import AdSence from 'react-adsence';
23+
import AdSense from 'react-adsense';
2424

25-
<AdSence.Google client='ca-pub-7292810486004926'
25+
<AdSense.Google client='ca-pub-7292810486004926'
2626
slot='7806394673' />
2727

2828
// or
2929

30-
<AdSence.Google client='ca-pub-7292810486004926'
30+
<AdSense.Google client='ca-pub-7292810486004926'
3131
slot='7806394673'
3232
style={{width: 500, height: 300, float: 'left'}}
3333
format='' />
@@ -37,7 +37,7 @@ import AdSence from 'react-adsence';
3737
# 3. TODO
3838

3939
- `Baidu` advertisement supported.
40-
- `Google` sync adsence supported.
40+
- `Google` sync adsense supported.
4141

4242

4343
# 4. LICENSE

0 commit comments

Comments
 (0)