Creating a Universal JavaScript app
Now that we've covered the basics, let's start to build a more complete Universal JavaScript application. We are going to build a simple "book library" application where we can list different authors and see their biography and some of their masterpieces. Although this is going to be a very simple application, it will allow us to cover more advanced topics such as universal routing, universal rendering, and universal data fetching. The idea is that you can later use this application as a scaffold for a real project and build on top of it your next universal JavaScript application.
In this experiment, we are going to use the following technologies:
- React (nodejsdp.link/react), which we just introduced
- React Router (nodejsdp.link/react-router), a companion routing layer for React
- Fastify (nodejsdp.link/fastify), a fast and ergonomic framework to build web servers in Node.js
- Webpack as the module...