Skip to content

A React component that renders its children if an ad blocker is detected

License

Notifications You must be signed in to change notification settings

grxy/react-ad-block-detect

Repository files navigation

react-ad-block-detect

A React component that renders its children if an ad blocker is detected

npm version Travis Build Status Circle Build Status Coverage Status dependencies Status devDependencies Status

Installation

npm install react-ad-block-detect

Usage

import React, { Component } from 'react';
import AdBlockDetect from 'react-ad-block-detect';

class MyComponent extends Component {
    render() {
        return (
            <AdBlockDetect>
                <p>Show this if an ad blocker has been enabled.</p>
            </AdBlockDetect>
        );
    }
}

Releases

No releases published

Packages

No packages published