While I was implementing the login feature, I was wondering what the best practice would be regarding where to store the JWT token.

Local Storage & Session Storage

There are two types of storage in web: localStorage and sessionStorage. These two allow saving key-value pairs within the browser (up to 5MB). …

Imagine a component which has the following code:

This sample will render a ‘Parent’ text and a ‘Child’ text like this:

Rendered contents

How would the console output differ between clicking ‘Parent’ text versus ‘Child’ text? Let us analyze each output to learn about event propagation.


  • Capturing phase came before…

This article shows a few ways of writing unit tests to test drive the controller and service layers of a Reactive application.

How to test Functional Endpoints

Functional endpoints can be mapped by defining a RouterFunction bean. Let us look at an example below which maps 4 endpoints. It can be observed that each endpoint…


Welcome to Jay’s blog. This blog is for myself to keep notes. Feel free to take a look and share.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store