React-router subdomain routing

后端 未结 2 1745
眼角桃花
眼角桃花 2020-12-14 08:56

I\'m building a site using react and react-router. My site is split into two sections: front and partners section. I want the partners section to be accessed using a subdoma

2条回答
  •  爱一瞬间的悲伤
    2020-12-14 09:19

    It's a good practice to treat primary domain code and sub domain code as different codebases. Also as you are aware and react-router is a client side module. Although this hack might work, it's generally frowned upon.

提交回复
热议问题