Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

argument of type * is not assignable to parameter of type SetStateAction

interface UserData {
  username: string;
  password: string;
  prevState: null
}

const [user, setUser] = useState<UserData | null>(null);
 
PREVIOUS NEXT
Tagged: #argument #type #assignable #parameter #type #SetStateAction
ADD COMMENT
Topic
Name
5+5 =