The example code for the simple Hook reimplementation can be found in the Chapter02/chapter2_1 folder.
Just run npm install in order to install all the dependencies and npm start to start the application, and then visit http://localhost:3000 in your browser (if it did not open automatically).