Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Express Basics Deeper into Routing with Express The Response Object

Neil Brown
Neil Brown
22,514 Points

Why do a page refresh?

I have enjoyed all the courses on javascript, node, and express. I have fallen in love with the language. But there is something I still don't understand. With the power of node why do we need to refresh the page in order to update text in a label. Why not just put an EventListener on the button with a callback? Is it necessary to have routes at all when you can dynamically create login, and signup pages with node?

1 Answer

Great question! The answer is, people have made projects to solve this problem. One example is http://livejs.com/

Search for "live reloading" and you'll find more similar tools :)