Truong Trong Hai·Aug 28, 2025useMemo vs useCallbackBoth useMemo and useCallback are React hooks that help you optimize performance by memoizing values or functions — meaning they prevent…
Truong Trong Hai·Aug 27, 2025Secure Your Frontend: Strip Logs and Comments with Terser Like a Pro 🛡️As developers, we often use console.log and comments to debug and document our code. But did you know these can pose security risks if left…
Truong Trong Hai·Aug 14, 2025How to Customize Dropdown Styles in Ant Design Using Plain CSS (Not CSS Modules)Sometime, CSS module cannot solve the problem of changing some default styles of Dropdown ( or other components )in Ant Design. I have used…
Truong Trong Hai·Aug 13, 2025🎯 How to Disable Future Dates in Ant Design’s RangePicker (with Custom Styling)When working with date ranges in web applications, it’s common to restrict users from selecting future dates — especially in dashboards…
Truong Trong Hai·Aug 13, 2025Understanding Timezone Behavior in Ant Design’s RangePicker with Day.jsWhen working with date and time pickers in modern web applications, handling timezones correctly is crucial — especially when your…
Truong Trong Hai·Jul 31, 2025Module CSS of React.js and Ant DesignIn my practical projects of FE with React.js and Ant Design ( AntD ), I often get the requests to apply custom styles to elements of AntD.
Truong Trong Hai·Jun 27, 2025Working with 2 ends of JavaScript arrayA simple JavaScript example that demonstrates all four array methods: push(), pop(), unshift(), and shift().
Truong Trong Hai·Jun 12, 2025Separating camelCase word to strings in JavaScriptIn my work, I often face the demand of change the camelCase word to strings. I learnt it and share with you this exciting issue.
Truong Trong Hai·Mar 19, 2025replace() — Javascript — with regex patternIn the demand of separating words in a camel Case string, I have learnt an exciting knowledge related to the way replace() function works.
Truong Trong Hai·Jan 12, 2025Create simple Websocket-based API with AWS API GatewayI have struggled with this idea in many hours to learn a new knowledge for my career. Searching and asking AI just brought to me old…