Using `Promise.all` to make your app load quicker

If you use React (or others) for an app that calls a db for data, you will likely already know to use await

It is a shorthand to create a Promise — essentially a link of actions. Read more here: https://www.valentinog.com/blog/await-react/. Promises are native in javascript so no clunky packages or extras to add.

In fact, I was using await regularly in everyhour.xyz as it is so simple, easy and readable.But there was one page…

--

--

--

Focused on saving our time: everyhour.xyz for your life balance; tree-meals-a-day.earth for our food emissions and compairbnb.info/hello for booking airbnbs.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

TypeScript: Object Oriented … typings

JavaScript concepts helpful for learning React

JavaScript Frameworks, Performance Comparison 2020

Math In JavaScript - basic

Virtual Dom In React

Exploring JSON, JSON5, and Circular References

How we implemented SVG Arrows in React: The Curvature (2/3)

How to provide content anywhere in the app?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
ACGoff

ACGoff

Focused on saving our time: everyhour.xyz for your life balance; tree-meals-a-day.earth for our food emissions and compairbnb.info/hello for booking airbnbs.

More from Medium

How To Deploy a React Website with Nginx on Virtual Machine

Deploy your React App on Ubuntu VPS

Exploring Redux Data Flow & Thunk

If else, For Each, Unless, Dynamic Data, layout, Comments with Handlebars Templating in Express.js