'Next.js on a compiled React JS file used by a WordPress site

Most of my projects are WordPress websites, and these are not headless CMS projects.

What I do is I compile a React app into a single .js file and call it via the <script> tag some of these components are a bit complex and are more maintainable and readable by using React rather than jQuery.

My question is, is it possible to use next.js on a non SPA application like WordPress?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source