Federico Baù
Federico Baù

Reputation: 7685

React work with AdSense | Do they work together

Does React work with AdSense in 2022?

I've one website where it does not pass the AdSense guidelines and I'm wondering whether it may be caused by react which loads all the content in a page like this (pretty react standard)

<!doctype html>
<html lang="en">
<head>

    <title>Title</title>
</head>
<body>
<div id="root"></div>

</body>
</html>

I do know that in the AdSense website they stated that it works better with a static content type, however all information is pretty vague and no where I've seen that you can't use react with AdSense, however nor the oppositve.

I think you can and I just thinking too much, especially because react is so popular, or am I wrong?

Upvotes: 1

Views: 2612

Answers (1)

Damian Busz
Damian Busz

Reputation: 1848

You definitely can use AdSense with React!

There is even some popular libs for react dedicated to ad sense, like

https://www.npmjs.com/package/react-adsense

If you worry about server side rendering then worst case this can also be done in React

Upvotes: 1

Related Questions