I am creating a marketplace web app using react and backend in express with mongoose for mongodb. I want to have a caregories like this: Classified > Mobile > Models and so on. And I want to render dynamic form fields based on the selected category. So how can i implement this.
I have researched and found the materialised path method for implementing hierarchical categories. So is this good approach or is there any better approach to achieve this?
I have not implemented this yet. I need guidance in order to implement this in a better way so that I can scale this further in the future.
Anony is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.