React adblock detector
npm install react-adblock-detector
Provides you with react hook to detect is an adblocker is enabled.
``javascript
import './App.css';
import React from 'react';
import { useAdblockDetector } from 'react-adblock-detector';
function App() {
const [isAdblockCheckComplete, isAdblockerDetected] = useAdblockDetector();
return (
export default App;
``
#### Last known good
react-adblock-detector@1.0.1 has been verified to work on the following browsers with version:
| | Version |
| ------------- | --------- |
| Chrome | 88.0.4324 |
| Firefox | 85.0.0 |
| Chromium Edge | 88.0.705 |
| Safari | 14.0.2 |