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