Help for add a preloader in website?

I want to add a preloader in my static react app personal portfolio website but I don’t know how to do this effectively can anybody help me?