lucaschen / microservices-demo

426 stars 144 forks source link

error in the AddListing.js in the classified ads service #3

Closed MohamedAlaa closed 4 years ago

MohamedAlaa commented 4 years ago

the following line needs to be changed from

import useForm from "react-hook-form";

To

import { useForm } from "react-hook-form";
MohamedAlaa commented 4 years ago

I'm using react-hook-form version 4.4.2

lucaschen commented 4 years ago

Yep, v4 got released not long after I made this video series. There might be a few other things as well (I'm not sure), make sure you check the changelog.