useTransition() Hook Example Reactjs
useTransition() hook returns array of 2 elements. First one isPending element. second one startTransition.
isPending: it's Boolean variable that returns true when the second element startTransition function executes and returns false when the execution of the startTransition() function is Done.
isPending: it's Boolean variable that returns true when the second element startTransition function executes and returns false when the execution of the startTransition() function is Done.