We will implement the VRObjectForm component to render the input fields for modifying an individual VR object's details, which are added to the answerObjects and wrongObjects arrays of the game in the GameForm component. The VRObjectForm component will render a form, as pictured in the following screenshot:
To begin implementation of this VRObjectForm component containing a VR object form, we will start by initializing the blank details of a VR object in the component's state with a useState hook, as shown in the following code:
mern-vrgame/client/game/VRObjectForm.js:
const [values, setValues] = useState({ objUrl: ...