An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# @ctrl/react-adsense [![npm](https://badgen.net/npm/v/@ctrl/react-adsense)](https://www.npmjs.com/package/@ctrl/react-adsense) [![coverage status](https://badgen.net/codecov/c/github/scttcper/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

```