I want to load React Component based on host name , Example , let say We have React application 'Frontend' and URL to access this app is <base_url>/test/login
or <base_url>/test/home
.
Now I want to access this app from 2 different host name.
test.abc.com/test/login , test.abc.com/test/home
test.xyz.com/test/login , test.xyz.com/test/home
Now If user use #1 then it will show the login/home/logout page for test.abc.com
only and for #2 login/home/logout page is different.
Basically I need to customized the UI based o hostname.
Can anyone tell me , How can I achieve this scenario or is there any other way to do that?