State management is very important in application development . It centralizes all the states of various UI controls to handle data flow across the application. For example, consider you want to show a “welcome” message on the user’s first-time visit but not on subsequent page visits, you need the state of the user.