How to use the ReactJs & NextJs together?

Whenever we develop an app, we first design its architecture and then determine which technology would be best suited for the app.