useStateObject hook
A React functional component hook to mimic Class component object state management.
Examples:
State declaration:
const state useState = ;
Usage:
// State will be merged with the object you provide to setState instead of being replaced; // State is now// {// isLoading: true,// isError: false// }