Update NPM packages to the latest version

If you want to update all of your application's packages to their latest version, you first need to identify the packages that are out of date. To do this, run the following command to discover any out-of-date packages:

Environment-specific config in React

If we want to have different settings based on the environment (development, test, production) we can leverage environment variables. However, if we bootstrapped our React application using "Create-react-app" command, we don't have access to the Webpack for the fully customised build. Instead, we can define variables in our NPM scripts and in our code we can test those variables and implement different functionalities.