import react, { useState, useEffect, } from "react"; import { useParams, useHistory } from "react-router-dom/cjs/react-router-dom.min"; import { getGames } from "./GameManager"; import { putEvents } from "./EventManager"; export const UpdateEvent = (props) => { const [gameList, setGameList] = useState([]) let { id } = useParams() const history = useHistory() useEffect(() => { getGames().then(data => setGameList(data)) }, [] ) // Still need to write out this form and figure out controlled/uncontrolled input for it. Event pk value needs to be passed to the form as props if I'm understanding this correctly const eventupdateform = () => { return( <>