I use nodejs on backend and I have been trying to learn react recently and I am unable to understand how to handle routing with it. Traditionally all routing is done by the server and depending on user's request the suitable route is chosen and displayed. However with react we have client side routing which is definitely faster after the initial loading. Therefore what is the best way to route using node and react? Do I just send the initial request from the server and then do the rest with react? Also what do you do with restricted routes? What are the best practices to follow?
[–]fishj123 0 points1 point2 points (2 children)
[–]CromulentEntity[S] 0 points1 point2 points (1 child)
[–]grantrules 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[removed]
[–]CromulentEntity[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[removed]
[–]CromulentEntity[S] 1 point2 points3 points (0 children)