I'm going to use React with D8 and perform so-called Progressive decoupling, i.e. use React Components on existing Drupal pages.
There are several articles on this topic but the information is not complete. It would be great to summarize it and define the best method of implementing React.
I've chosen this guide to start with and created a React App inside my custom module folder. I've also decided to use JSON API instead of RESTful Services, according to the recommendations.
After that author recommends to use Paragraph module to implement separate paragraphs which will be replaced by React components.
It is not clear to me what structure should my custom module have? Do I need a router, controller, .module file or maybe a plugin? Where should I put hook_preprocess_paragraph__HOOK function?
My idea is simple - to use different paragraphs for different React components and insert them into an existing layout.
Any best practices?