Basically is the result of following this great tutorial https://medium.com/swlh/getting-started-with-rails-6-and-react-afac8255aecd about adding react to rails 6 application.
I added the configuration files .indium.json and jsconfig.json to work inside emacs