How to get icons in React
Here’s a quick review of the different ways to get icons into your React projects.
If I’ve done this right, you might not need a freelancer!
I’ve written some articles – mostly on techy stuff – which I hope help you learn something new or solve some pre-existing problems you’re having.
Here’s a quick review of the different ways to get icons into your React projects.
Sometimes your imports will have the same name – but you can’t use the same name twice – here’s how to fix it.
Here’s how you can subset your font files with glyphhanger.
Here’s a quick one on creating aspect ratio boxes – whether or not you know the exact width/height.
Here’s a quick one on how to centre an absolute positioned element with TailwindCSS.
Here’s how to make sure your pages and screens track in Google Analytics with Next.js.
Here’s a quick mathematical one on dividing a number of days into weeks and days.
An easy HTML only method of forcing a link to download a file instead of showing it in the browser.
A short post on how to write your own custom PHP functions.
The different types of loops available in PHP and how to use them.
A list of PHP operators and what they do.
Here’s a quick one on how to add the Google Analytics tracking code to a website in Next.js.
Here’s an explainer on CSS Flexbox, the CSS 3 web layout model which helps you create better layouts.
Inlining your critical CSS can lead to big performance gains and faster loading websites.
A quick one on using JavaScript Object Notation (JSON) in PHP.
Now that macOS and iOS both support AVIF via Safari, is now the time to start using the format on your website?
Learn how to check whether all elements on your webpages have sufficient colour contrast between the background and foreground colours.
There’s not much more to say – here’s how you generate a random ID string to use in your React elements.
Specify the file types a user is allowed to select from a file upload HTML input element.
Learn how to serve responsive images with `srcset` and `sizes`.
Use CSS media queries within an SVG favicon to offer light and dark versions.
Here’s a method of subsetting Google Fonts in the browser without the need for any specialist software or coding.
Here’s how to preload responsive and retina images properly, only preloading the image actually shown to the user.
Sometimes you’ll want to render a React element as a different HTML element in different places, here’s how.
Here’s how to serve retina images for pixel-dense screens and prevent fuzzy images.
Here’s another quick and easy one on how to add days to a JavaScript date object.
Here’s a very quick and easy one on how to pad integers with leading zeroes using the built in JavaScript math library.