showing results for - "typeerror object 28 29 is not a function react useparams"
Julia
26 Jun 2017
1There is no useParams in the react library?
2perhaps like me , you were using the wrong import.
3i expect you use react-router? then you should import the useParams from there.
4import { useParams } from "react"  (wrong)
5import React from "react";
6import { useParams } from "react-router-dom";(right)