The error is not specific to react-hook-form or Gatsby – your React component is just missing a return statement.
Return the JSX by using return <div>...</div> where you have <div>...</div>.
return <div>...</div>
<div>...</div>