Hi @ManviSharma ,
I am trying to integrate react with existing code base, cant use SPA editor or headless approach. My goal is to use react in HTL. I will pass model data as json through data-attribute or something, then react handles the rest. Your shared snippet is exactly what I have in mind, I have tried this approach with webpack bundler but getting build failure for ui.frontend module.
Could you please share a working example?