Hi @khush2947 ,
I have successfully done implemented AEM SPA with react and i can assure that it will work fine in publisher.I had generated the basic structure from here.
Also, data-cq-data-path allows the retrieval and association of the edit context configuration object of each component which is specific to author instance and might not generate into publisher instance(need to check).
Meanwhile, Could you please make sure that all of your bundles are up and running properly in publisher instance?Also, make sure you publish all the content related to your custom functionality.
Regards,
Arpit Varshney