Published onSeptember 26, 2023What is the 'touch' command in Terminal?LinuxShellIf the file doesn’t exist, it creates a new empty file; if it already exists, it updates the modification time.
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.
Published onMarch 26, 2023What is the difference between using {} and not using {} in import statements?reactjavascriptImport the default export without {}, and use {} for named exports.