Answers for "typeerror object(...) is not a function react useParams"

1

typeerror object(...) is not a function react useParams

There is no useParams in the react library?
perhaps like me , you were using the wrong import.
i expect you use react-router? then you should import the useParams from there.
import { useParams } from "react"  (wrong)
import React from "react";
import { useParams } from "react-router-dom";(right)
Posted by: Guest on April-29-2021

Code answers related to "typeerror object(...) is not a function react useParams"

Code answers related to "Javascript"

Browse Popular Code Answers by Language