Blog Posts About JavaScript

Mastering Mocking in Vitest: Beyond
Master Vitest mocking! Learn advanced techniques beyond vi.mock() for robust, reliable JavaScript/TypeScript tests. SpyOn, vi.fn, and more!

Mastering Time: Using Fake Timers with Vitest
Level Up Your Timers Tests With Speed and Isolation

Improve Performances With Dynamic “content-visibility”
Using the power of the content-visibility CSS property on dynamic sized elements

JavaScript Spread and Rest Operators: When To, Why To, and How to Use Them
Understand two of the most useful JavaScript features

Loading Gists in a NextJS Application
A tutorial on how to load GitHub Gists from inside markdown pages of a NextJS blog

Fetching data with React
From custom made code to powerful libraries

Build an Easy Popup System With React
Demystifying the way to create a simple, customisable, and accessible popup system with React

My Journey From React to React Native
The things that changed for me switching when from web applications to native applications

An Opinionated Way to Structure React Apps
Based on my experience acquired building several big projects

How to Debug a React Context API App
Using the Redux DevTools extension

A Complete Pre-Commit Workflow
Using Husky to make an awesome git workflow

How I dropped Redux for the Context API
React 16 introduced a new Context API to replace the deprecated one… Here is my way to replace Redux with this new API.

Des webapps style Android ICS
Intégration d'un application pour suivre le style Android ICS

Optimisation de boucles JavaScript
Parfois, le code le plus simple n'est pas le plus performant. C'est le cas des boucles JavaScript.

Mettre en place un placeholder et son failback
Le HTML5 apporte un nouvel attribut aux champs input text et assimilés : placeholder. Mais que faire sur les vieux navigateurs ?

Statsy v2 – Quelques ajouts
De nouvelles fonctionnalités pour améliorer le rapport Statsy

Rendre l’URL de recherche de Google plus lisible
Matt Cutts, responsable de la webspam team de google à posté sur son twitter Une méthode pour rendre les URL de recherche de Google plus jolies.

Internet Explorer : Opération abandonnée
Le message « Internet Explorer ne peut pas ouvrir le site » « Opération abandonnée ! »