Reactjs – Context is returning undefined
Form import { useState, createContext } from "react"; import { data } from "../../../../data"; export const peopleContext = createContext(); export default function Form() { const [people, setPeople] = useState(data); const [name, setName] = useState(""); const handleSubmit = (e) => {…