Here is my url of localhost 5000
const Features = () => { const { featureId } = useParams();
const [feature, setFeature] = useState();
I want to use custom hooks for this
useEffect(() => {
const url = `http://localhost:5000/inventory/${featureId}`;
console.log(url)
fetch(url)
.then(res => res.json())
.then(data => setFeature(data))
}, [])