https://github.com/scttcper/react-adsense
Adsense component for react
https://github.com/scttcper/react-adsense
adsense react
Last synced: about 1 year ago
JSON representation
Adsense component for react
- Host: GitHub
- URL: https://github.com/scttcper/react-adsense
- Owner: scttcper
- License: mit
- Created: 2020-06-06T18:40:27.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-06T05:34:11.000Z (over 1 year ago)
- Last Synced: 2025-04-03T10:12:17.395Z (about 1 year ago)
- Topics: adsense, react
- Language: TypeScript
- Homepage: https://react-adsense.xmplaylist.com
- Size: 1.09 MB
- Stars: 101
- Watchers: 3
- Forks: 18
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @ctrl/react-adsense [](https://www.npmjs.com/package/@ctrl/react-adsense) [](https://codecov.io/gh/scttcper/react-adsense)
DEMO: https://react-adsense.xmplaylist.com
### Install
```console
npm install @ctrl/react-adsense
```
### Use
Use the standard AdSense code somewhere in your `` as you [normally would](https://support.google.com/adsense/answer/7477845)
```html
```
```tsx
import React from 'react';
import {Adsense} from '@ctrl/react-adsense';
// ads with no set-up
// ads with custom format
// responsive and native ads
```