Lance

Lance

Lance is a software engineer with over 15 years of experience in full-stack software development.
Posts by Lance
How to use a Typescript Map
How to use a Typescript Map
This article explains how to create and use a Map in Typescript
20 May 2022
How to use a Javascript Map
How to use a Javascript Map
This article explains how to create and use a Map in Javascript
20 May 2022
Next js google tag manager: 2 ways to use Google analytics in Nextjs
Next js google tag manager: 2 ways to use Google analytics in Nextjs
The problem we solve is how to trigger analytics on each router change. This reference explains 2 simple ways to integrate google analytics with react js and next js
14 May 2022
Thread safe singleton design pattern example
Thread safe singleton design pattern example
How to implement thread safe version of singleton design pattern
14 May 2022
How to run Apache Tomcat on Mac and Linux
How to run Apache Tomcat on Mac and Linux
This article describes how to download and run the Apache Tomcat server as a standalone server
10 May 2022
Avoid unnecessary re renders with React memo and useCallback
Avoid unnecessary re renders with React memo and useCallback
Component re-rendering is expensive and can affect performance. This article explains simple methods to avoid unnecessary component re-renders
7 May 2022
Building a modal with Reactjs portal
Building a modal with Reactjs portal
This article explains how to display a modal dialog using Reactjs portals
6 May 2022
Load balancing a webapp in NGINX
Load balancing a webapp in NGINX
This article explains how to load balance a web app in NGINX. The web app can be any application running in a specified port
30 April 2022
How to integrate EZOIC with ReactJs and NextJs
How to integrate EZOIC with ReactJs and NextJs
This article explains how to integrate Ezoic with ReactJs or NextJs based websites.
29 April 2022
forwardRef and useImperativeHandle to access child components
forwardRef and useImperativeHandle to access child components
How to use forwardRef and useImperativeHandle to access child components and override default dom event handlers
29 April 2022