React Setup
refinerdb-react
is a React wrapper around the core engine, refinerdb
.
Installation
npm install refinerdb-react
Quick Start
- Define your indexes (see
indexes.ts
) - Wrap you app in a
RefinerDBProvider
(seeApp.tsx
) - Refine the items (see
refiners.tsx
) - Display the results (see
ResultsView.tsx
)
The following example is interactive! Play around with it!
Philosophy
- It is a headless framework that provides a suite of custom hooks
- It does not make any assumptions about what things how things should look
- This leaves the UI compeletely up to you and means
refinerdb-react
is compatible with any UI framework or styling technique (ex: CSS in JS).