russmaxwell
Intro to useState() useState is a React Hook defined as a function. It provides the ability to refresh a component instead…