Published onJune 29, 2023Fixing the Unexpected use of 'location' errorreactUse window.location instead of location.
Published onJune 27, 2023Dive into `string.prototype.replaceAll`JavaScriptReplace all matches, use the `g` flag with regex, may not be supported in older browsers.