Code Buckets

Buckets of code

Better Async Calls in the useEffect Hook

The useEffect hook allows you to perform side effects on your React page. A common use case would be to perform an API call to populate the page when the page has mounted i.e. The Problem The callApi method is…

Working with Dynamic Images in React Native

I’ve been recently developing mobile apps using React Native and TypeScript and here’s an odd thing – it’s not actually possible to use dynamic images within React Native. The Problem with Dynamic Images I’ve coded an Android app that displays…