Documentation
Latest
Latest
  • Reactify Search
  • Getting Started
  • Guides
    • Upgrade workflow
    • Upgrade v4 to v5
    • Liquid Theme
    • SSR
  • Release Notes
  • Troubleshooting
    • Categorising Issues
    • Common Issues
    • Debugger
    • CodeSandbox
    • Further Troubleshooting
  • Security Overview
  • Components
    • Component Basics
    • ReactifySearchProvider
    • Sensors
    • Search
    • SortBy
    • ClearAll
    • FiltersSelected
    • Filters
    • Filter
    • Results
    • Stats
    • Suggestions
    • CustomComponent
  • Hooks
    • useSearch
    • useSortBy
    • useFilters
    • useResults
  • Classes
    • ReactifySearchLiquidFactory
Powered by GitBook
On this page
  • 1. Read the User Guide
  • 2. Install
  • 3. Context
  • 4. Components

Was this helpful?

Getting Started

Ready to move ahead with Reactify Search? Start here!

PreviousReactify SearchNextGuides

Last updated 1 year ago

Was this helpful?

1. Read the User Guide

If it's your first time working with Reactify Search its worth reading the which explains how Reactify Search and all of its features work and how to configure them.

2. Install

Install the dependencies.

npm install @usereactify/search

3. Context

Wrap your search area with the and set the required props to create a new Reactify Search context.

All of the search results, filters and sort options will be contained within the context, you can add more than one to a page and their data will remain separate.

import React from "react";
import { ReactifySearchProvider } from "@usereactify/search";

export const SearchPage: React.FC = () => (
  <ReactifySearchProvider
    mode="search"
    shopifyPermanentDomain="usereactify-demo.myshopify.com"
    market="12345" // optionally the ID of the Shopify market to use
  >
    ...
  </ReactifySearchProvider>
);

4. Components

import React from "react";
import { ReactifySearchProvider, Sensors, Filters, Results } from "@usereactify/search";

export const SearchPage: React.FC = () => (
  <ReactifySearchProvider
    mode="search"
    shopifyPermanentDomain="usereactify-demo.myshopify.com"
    market="12345" // optionally the ID of the Shopify market to use
  >
    <Sensors />
    <Filters />
    <Results />
    ...
  </ReactifySearchProvider>
);

Use the built-in components such as the , and to begin, all visual components will render something functional by default.

Filters
Sensors
Results
User Guide
ReactifySearchProvider
User Guide