nested routes in reactjs
I want to display the content of the nested route (e.g., Cake) and hide the parent component’s UI when navigating to /deliver/cake ..here /deliver is parent route
Codes
I only include main part of code
App.js
Delivery.js
Cake.js
1 Reply
Should I try useState and ternary??