Skip to content

Tag: reactjs

TypeError: props.render is not a function (React hook form)

I am passing methods as a prop in this form I am making with react-hook-form. Its giving me (TypeError: props.render is not a function) when Controller is added in from react-hook-form. I cannot find any solutions online so any help is appreciated. Answer This problem is arising either because you update your…

handling undefined in handleSubmit function

I am running into an issue in my React app with the handleSubmit function as explained below. Brief overview: In order to handle employeeSets and projects for the axios put, I have to put certain arrays related checks as shown below. In a scenario when both employee and project are an array, my control reache…