Can't get the id url from next js and use it with axios – Reactjs
I've been trying to make a get request with axios, but it doesn't work because the id const doesn't load and is marked as undefined. Here is my code: import Head from 'next/head' import axios from 'axios' import React, {…