React redux and saga pattern.

This is a simple pattern that will provide react hook and react higher component to get the state from redux and register the actions. First create a ts file with an initial state, reducers, and saga effects: In the above code, the namespace must be the first part of the type in effects and reducers … Read more

Allow images to download or display in the browser

Using the content-disposition header property, we can tell the browser if to download or to show image in browser: “content-disposition: attachment” will download the file while “content-disposition: inline” will display the file in the browser if supported.