We have used npm previously in this book, and by now we should know how to use it well. The npm ecosystem is composed of thousands of external modules. We can use the official npm website at https://www.npmjs.com/ to search for a package that might help us to complete a given task. Unlike the modules that are part of the core Node.js API, external npm modules need to be installed using npm:
npm install react
If the module is not recognized by TypeScript, we will also need to install its type definitions (if available):
npm install @types/react