This is a NPM package with a component for React that will help you display the loader at use next-js-promise-tracker