...

/

Show a Preloader

Show a Preloader

widget

Our preloader is a screenshot of the final result. Usually you’d have to wait until the end of the project to make that, but I’ll just give you mine. Starting with the preloader makes sense for two reasons:

  1. It’s nicer than looking at a blank screen while data loads
  2. It’s a good sanity check for our environment

We’re using a screenshot of the final result because the full dataset takes a few seconds to load, parse, and render. It looks better if visitors see something informative while they wait.

Make sure you’ve installed all dependencies and that npm start is running.

We’re building the preloader in 4 steps:

  1. Get the image
  2. Make the Preloader component
  3. Update App
  4. Load Bootstrap styles in index.js

Step 1: Get the image

Download my screenshot from Github and save it in src/assets/preloading.png ...

Access this course and 1400+ top-rated courses and projects.