Hi guys, I understand in full stack JS, our nodejs routes will/can expose JSON data for our front end to call via fetch or whatever. Recently I learnt about res.render in express routing which can render a html page. In what situation would we want to use this over our front end calling our route's JSON data?Any thoughts would be much appreciated! Just a newbie diving into the world of node.
Submitted May 15, 2019 at 10:20AM by Possible_Hawk
No comments:
Post a Comment