JSPM

react-ad-block-detect

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1190
  • Score
    100M100P100Q117473F
  • License MIT

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

Package Exports

  • react-ad-block-detect

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-ad-block-detect) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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