18 followers
A Software Developer
The issue When we draw image in canvas, we may do scaling up or scaling down the image size. For example, if the image has size 100*100, we may want...
The Issue Consider this case. I am building a spa with multiple page. There is a video in page A and also the same video in page B. I want to preserve...
In this article, let's write a gif decoder in typescript. Parser Say we have a gif file, the first we need to do after loading the file is to parse...
Usually, react component will only read data from states, props or context. Or we can use any third party library such as redux to store global...
If you are using styled components, then you may also consider using babel-plugin-styled-components. This is a plugin for babel, which provides a few...
Let's solve the leetcode problem majority element. The problem is to find the majority element which is the element that appears more than n/2...