react-ad-block-detect

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-ad-block-detect
7361.0.17 years ago7 years agoMinified + gzip package size for react-ad-block-detect in KB

Readme

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>
        );
    }
}