import { useState, useRef } from "react"; import TheaterTable from "./TheaterTable"; import TheaterEditForm from "./TheaterEditForm"; const TheaterEdit = () => { const [edit, setEdit] = useState({}) const formRef = useRef(null) return ( <>