You can access the slug param from getServerSideProps context, and make the external API call directly from there. There's no need to make the request from the client-side.
Category: ReactJs
Loop through an object using the map in React
I added a code block that has some example stuff for Loop through an object using the map in React. Hope it helps!
How to generate Random Id in ReactJs
I added a code block that has some example stuff for generate Random Id in ReactJs. Hope it helps!
The function that returns the first or first two letters from a name in ReactJs
I added a code block that has some example the function that returns the first or first two letters from a name in ReactJs.
Hope it helps!
Using Woocommerce as backend & ReactJS as frontend?
Coming soon!