How to stop a React component from rendering
March 18, 2023 — In React, when you want don’t want a component to render based on some condition, you might reach for short-circuiting to achieve the same.
A blog on PHP, JavaScript, and more
March 18, 2023 — In React, when you want don’t want a component to render based on some condition, you might reach for short-circuiting to achieve the same.
March 17, 2023 — So, Caleb Porzio recently shared a little memoize function in PHP. What the function does is pretty straightforward.
March 13, 2023 — The install prompt is a great way to get your users to install your PWA (Progressive Web App). But it can elevate the user experience if you can add some nice screenshots of your app to the install prompt.
March 12, 2023 — There are a couple of projects of mine where I needed to create and download text/JSON files using JavaScript. For instance, in LinkSnatch, I needed a way to export the bookmarks as a JSON file or in my Notepad app, I needed a way to export the notes as a text file.
March 9, 2023 — The Pipeline
facade is one little helper in Laravel that has been around for quite some time now but it’s only recently that it has got its place in the Laravel documentation.
March 7, 2023 — I was browsing through my Twitter feed and I saw something pretty subtle yet mind-blowing. One of the guys from the Astro team was showing off some of the new things they have done for their brand redesign.
March 6, 2023 — There comes a time when you want to make HTTP requests but the URL using which you want to make the request is dynamic. For example, you want to make a request to the GitHub API to get the details of a user but the username is dynamic. Or the version of the API is dynamic.
March 5, 2023 — So, this is it! After I’ve seen this screenshot in one of the tweets by Nuno Maduro where he’s using the JetBrains Mono fonts in his editor with the bold font weight, I was like, “I definitely need to try this thingy!”.
March 4, 2023 — The CSS Working Group has recently published a new draft of the CSS Text Module Level 4 specification that introduces a new property called text-wrap
that allows you to control the wrapping of text in a more granular way.
March 1, 2023 — I have been making websites for more than 10 years now and one of the things I inevitably use is CSS. I use CSS a lot and yet, I still learn new things about it every now and then. And today, I learned about the font
shorthand property in CSS.