Marco GhianiMarco Ghiani
BlogDevToolsSnippetsAbout
BlogDevToolsSnippetsAbout

Snippets

  • How to Use the useViewport Hook in React

    Get a step-by-step guide on implementing the useViewport custom hook in React to enhance your app's responsiveness.

    • #javascript
    • #nodejs
    • #react
    • #hooks
  • Filtering Object Properties in JavaScript

    Implement a custom JavaScript polyfill that brings array-style filtering to object properties. Perfect for simplifying data manipulation.

    • #javascript
    • #nodejs
    • #methods
  • How to Implement Array Flat and FlatMap Methods in JavaScript

    Learn how to use the Array flat and flatMap methods in JavaScript and speed up your development process. Our guide covers implementation details, examples, and more.

    • #javascript
    • #nodejs
    • #methods
    • #array
  • Moving from Callbacks to Promises in JavaScript

    Simplify your JavaScript code by transitioning from error-first callbacks to promises. This guide shows you how to manage asynchronous tasks more efficiently.

    • #javascript
    • #nodejs
    • #promises
  • Deep Cloning in JavaScript: How to Clone Objects and Arrays

    Simple, reliable method for deep cloning objects and arrays in JavaScript to avoid common pitfalls in data manipulation.

    • #javascript
    • #nodejs
    • #object

Frontend tips in your pocket?

Subscribe to my newsletter!

I will periodically publish new content and tools about Frontend development and Web Tech 🤓
Subscribe to my newsletter and stay up to date!
Newsletter
Navigation
  • Home
  • Blog
  • DevTools
  • Snippets
  • About
  • Sitemap
Featured articles
  • Introducing React v18 with real-world examples
  • 4 Books Everyone in Tech Should Read and Why
  • 10 Programming Code Smells That Affect Your Codebase
  • Moving beyond console.log()
  • React Custom Hooks #1: Manage Your Data with useLocalStorage
  • React Custom Hooks #3: useToggle and useBoolean
Featured dev tools
  • Blobmaker
  • Checklist Design
  • Coolors
  • DrawKit
  • Happy Hues
  • Neumorphism
If it takes less than two minutes, then do it now. David Allen
© 2025 Marco Ghiani