react-ad-block-detect
v1.0.1
Published
A React component that renders its children if an ad blocker is detected
Downloads
222
Maintainers
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>
);
}
}