Problems/useState Counter with History#41EasyReact Basics· HooksuseState Counter with HistoryBuild a counter with: increment, decrement, reset, undo (last 10 actions), and a step size input. Use useState for count, step, and history array. The undo button should revert the last action. Display the history as a list below.#react#hooks#usestate