DEV Community

Discussion on: React Hooks: (0 , _customhooks.default) is not a function

 
jakeerc profile image
Jakeer

Destructure the props in MyJobList component properly in ({ prop})

const MyJobList = ({inputs}) => (
  <div>
    <h3>{inputs.positionTitle}</h3>
    <p>{inputs.companyName}</p>
    <p>{inputs.jobLink}</p>
  </div>
);