Creating a react-instantsearch component that adds/removes a facet filter

Hello again,

I have a separate question from before. I have articles that are tagged. Some of these tags might be things like: “long”, “funny”, etc.

Are there any existing components / examples that show how to create a button within the Hits that when clicked, refines the search for that tag?

For example, my results might look like:

title: Blog Update 1
tag: blog, short, personal

title: ReactJS Tutorial
tag: tutorial

I would like to be able to click the tag “blog” and be able to filter my results to just posts tagged "blog "

Hello,

I think your best bet might be to look at the documentation around custom widgets.
It explains how to customize the search params, and thus should help you crafting a component that refines on a facet when clicked: https://www.algolia.com/doc/guides/building-search-ui/widgets/create-your-own-widgets/react/