Leonard Kioi Kinyanjui
Lenny's Blog

Lenny's Blog

Javascript String Replace Gotchas

Apr 28, 20222 min read

To replace a character from a string with another in JavaScript, the goto method is replace but there is a small gotcha that can lead to subtle bugs...

Javascript String Replace Gotchas
How to Prevent Nesting of Components in React
5 reasons you should choose Flutter for Desktop development on Windows and macOS
React useState lazy initializers
Tailwindcss + React + Typescript in an Electron app
Deploying a NextJS project on CloudFlare Pages