create-instantsearch-app
Version:
⚡️ Build InstantSearch apps at the speed of thought
86 lines (58 loc) • 2.1 kB
Markdown
{{ description }}
---
[](./LICENSE) [](https://npmjs.org/package/{{ packageName }})
```bash
npm install {{ packageName }}
yarn add {{ packageName }}
```
```jsx
import instantsearch from 'instantsearch.js';
import algoliasearch from 'algoliasearch/lite';
import { {{ pascalCaseName }} } from '{{ packageName }}';
const searchClient = algoliasearch('appId', 'apiKey');
const App = () => (
<InstantSearch searchClient={searchClient} indexName="indexName">
<{{ pascalCaseName }} />
</InstantSearch>
);
```
| Option | Type | Required | Default | Description |
| :-- | :-- | :-- | :-- | --- |
| [`option1`](
> `string` | **required**
REPLACE WITH THE DESCRIPTION FOR THIS OPTION
```jsx
import { connect{{ pascalCaseName }} } from '{{ packageName }}';
// 1. Create a render function
const Render{{ pascalCaseName }} = (renderOptions, isFirstRender) => {
// Rendering logic
};
// 2. Create the custom widget
const Custom{{ pascalCaseName }} = connect{{ pascalCaseName }}(
Render{{ pascalCaseName }}
);
// 3. Instantiate
const App = () => (
<InstantSearch searchClient={searchClient} indexName="indexName">
<Custom{{ pascalCaseName }} />
</InstantSearch>
);
```
To start contributing to code, you need to:
1. [Fork the project](https://docs.github.com/en/get-started/quickstart/fork-a-repo)
2. [Clone the repository](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository-from-github/cloning-a-repository)
3. Install the dependencies: `yarn`
4. Run the development mode: `yarn start`
Please read [our contribution process](./CONTRIBUTING.md) to learn more.
---
_This project was generated with [create-instantsearch-app](https://github.com/algolia/create-instantsearch-app) by [Algolia](https://algolia.com)._