This particular article is my solution to try and mock a particular external method (using jest mock method) in the test case for a simple example app. Hope this article saves time for a lot of fellow devs in the community!
So React Portals are basically React’s way of rendering your desired component into a target dom element anywhere in your react application.
When the user enters the password, he/she should be able to see a bar which shows indicates the strength of the password entered in the field. Red color means it’s a weak password, Orange color means the password has medium strength and Green color means the password is strong enough!
Toasts are lightweight notifications designed to mimic the push notifications that have been popularized by mobile and desktop operating systems.