How can express.js refresh automatically when state status changes like react?

how can express.js automatically refresh state status changes like react

  • for example, if you select an item to enter the shopping cart, the display of the number of shopping carts changes, and how express does not need to re-render or redirect?

Front-end Ajax request
Operation succeeded express tells success with res.json,res.send or other returned points


this is usually notified

with socket
Menu