Aneesh

Aneesh @varadan13

Joined:
Aug 17, 2021

Aneesh
articles - 14 total

Understanding useSyncExternalStore Through Some Examples

useSyncExternalStore is a React Hook that lets you subscribe to an external store. First, let’s...

Learn More 0 0Jun 21

Polyfill for Array.isArray

The below code provides a fallback implementation for Array.isArray() in environments where it might...

Learn More 0 0Jun 21

Polyfill for a function to check if a value is a string!

var toString = Object.prototype.toString module.exports = isString function isString(obj) { ...

Learn More 0 0Jun 21

How I Optimized Huys Kitchen's Website by Serving Images with Exact Size

In the world of web development, optimizing website performance is a key factor for user...

Learn More 0 1Feb 8 '24

Enhancing SEO with Slugs: A Better Approach for URL Composition

In the world of web development, constructing URLs plays a crucial role in creating user-friendly and...

Learn More 0 0Jan 24 '24

A Simple Way to Expose Internal Component State in React

Consider a scenario where you have a DatePicker component with its internal state, and you want to...

Learn More 2 0Oct 11 '23

README : add viewport meta tag

What happens without the viewport meta tag? Some mobile devices and other narrow screens render...

Learn More 0 0Sep 14 '23

Mastering the Art of Flash Card Study: A Fun and Effective Learning Technique

Flash cards are simple tools that can be created using paper and pen or digitally through software...

Learn More 0 1Sep 13 '23

A simple way to deal with closure over a stale state in React code

const [stateA, setStateA] = React.useState('A'); React.useEffect(() => { setInterval(()...

Learn More 3 0Sep 8 '23

How to detect if a website is running on a webview?

Step 1 - Customise the userAgent string of the webview. Below is an example from...

Learn More 0 0Sep 8 '23

Possible reasons for slow page transitions in NextJS

Page transitions in Next.js can take longer than expected for several reasons. It's important to...

Learn More 0 0Aug 31 '23

Simple custom hook to figure out which state change triggered an effect in React

In React applications, the useEffect hook is a powerful tool for handling side effects and component...

Learn More 0 0Aug 17 '23

Use git commit --amend to add new changes to the previous commit i.e., HEAD~{0}

Imagine you've just made a commit, feeling confident about the code changes you've implemented....

Learn More 2 0Jun 23 '23

Combining debugger statement and console.trace for faster issue debugging

When it comes to debugging code, finding and fixing issues quickly can mean the difference between a...

Learn More 0 0Apr 27 '23