So you're using the same language on the browser and the server. Great!
You can get the benefits of fast initial page loads server-side that are easily indexed by search engines while simultaneously rendering realtime and on-demand content browser-side for a rich, responsive user experience!
This sounds really great, but now you might be thinking:
* How do I load the shared code in both environments without making a mess?
* How can I load files like html or templates in a way that works in both node and the browser?
* How do I render the data?
* How should I route the data where it needs to go?
These questions are not obvious and there are many ways to answer them! The rest of this article is some answers that I've discovered or built that work well together.
Your new post is loading...