I implement hierarchical menu by using instantsearch.js on difference 2 UI (mobile&desktop)
By the way I already implement it on desktop and trying to implement when user open web on mobile.
Then, I trying to show the menu of categories just child value not overall how I can do that ? with instantsearch.js or helper.js which one is fit for this solution ?
Ex. From below is the hierarchical menu on desktop,
Then if user click B will show only B1 B2 and header is B, then user click B to back, menu will show A B C D,
-A -B -B1 -B11 -B2 -B22 -C -D
Ex. when user click B
<- B (header) B1 (sub of B) B2 (sub of B)
Ex. when user click B to go back
A B C D