Saturday 11 November 2017

ExpressJS - React app only in one route

Hello guys.So what I am trying to do is to have a fronted generated with pug templates but when I hit /admin route I want to start a React SPA on just this specific route but I am getting all kind of weird things and have no clue what is a correct path to do this.I assume it is not working as I cannot mix react router and express router as I am hitting "/admin" express route and want React to be show there.How should I approach to this? Thanks :)

Submitted November 11, 2017 at 05:17PM by nikola1970

No comments:

Post a Comment