author-pic

JOSEPH CHOW

Handling multi-page API calls with React Hooks

Posted on December 30, 2020

Today we will be walking through an example of how to make continuous API calls to fetch multiple pages of data. Our goal is to build a small web app using React and the HooksAPI that will load dynamically based on user parameters. We will be fetching data from the free API CheapShark API, which provides data for sales across multiple game vendors…

Read full post

How to do Dark Mode with React Hooks

Posted on December 29, 2020

Dark Mode is one of the latest features being widely adopted across apps and websites. Dark colours can prolong the battery life of mobile devices. The savings, according to Google with the Dark Mode offered on the YouTube app, allows a 15 percent energy reduction at 50 percent brightness and a huge 60 percent reduction at 100 percent bightness. Apple…

Read full post

How to use Dynamic Imports in ES2020

Posted on December 28, 2020

One of the most exciting new features, for me, in ES2020 is the ability to dynamically import your files. This means that rather than importing all your potentially necessary files at the top of your file, you can just import files based on need. Imports Import was introduced in ES2015, since then we have been able to natively load our modules in our code…

Read full post