That middleware is actually just a isomorphic render method, which uses express's render on the backend and react's render on the FE.
So that middleware actually requires a solution similar to what Nighthawk provides. The point was to keep the routing and the rendering separate, unlike what react router does.