Hey @arshath.h,
The FDK React app, by default can work on multiple app locations, you need not create a custom Webpack config for this.
The below thread has the solution you are looking for with a code snippet, kindly take a look at it and let us know if it helps or If we could help you any other way?
Here is also an unofficial documentation for react fdk integration that could help you Introduction | FDK Single Page App Integrations
P.S official documentation is on the way!
Hope this helps!
Stay Safe