I have a category list in SharePoint which have all categories in my list:
While it is sub-category list which has all sub-categories
And I also have third list which have items and the respective category and sub-category IDs:
I have to develop a webpart in SPFx which renders all the categories and under the category it should have 3 columns for sub-category and under each sub-category it renders the items related to that category.
UI of Web Part that I have to build
How to build this webpart? I am using SPFX with React and PnP SP for APIs kind of things.
I am not sure how to get data from all of the list and do the joins to get data from a different lists.