skip to Main Content

Reactjs – Cannot destructure React context object

//App.tsx import { createContext, useState } from "react"; import { defaultFormData } from "./components/Context"; const theme = createTheme({ typography: { fontFamily: "Manrope, sans-serif", }, }); export const FormStateContext = createContext({}); function App() { const [formData, setFormData] = useState(defaultFormData); return (…

VIEW QUESTION
Back To Top
Search