I created the following useToggle hook which does not make use of .map():
.map()
import { useState } from "react"; export const useToggle = (