How to make a data filtering in React JS?

I’ve built a backend API in NodeJS. which works pretty well for search as well as facetiting search.

Api Works like this:


This API works for unlimited facets key and value as well.

Now, I’ve to build an e-commerce shop in React JS.which includes faceting search on multiple values LIke:RAM,Storage,CameraType with CHECKBOX

Now, I’m stuck here and have no logic to make things like this. Anyone have idea how do I build thing like this with explanation or code??

Note: I've full knowledge of aggregation framework. which I used to build backend API

Sample Image: