Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
docs: regular Hits component
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv authored and samouss committed Dec 20, 2017
1 parent 4b9d1ab commit 82f3a76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docgen/src/guide/Refreshing_cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If you know that the cache needs to be refreshed conditionally of a specific eve

```jsx
import React, { Component } from 'react';
import { InstantSearch, SearchBox } from 'react-instantsearch/dom';
import { InstantSearch, SearchBox, Hits } from 'react-instantsearch/dom';

class App extends Component {
constructor(props) {
Expand Down Expand Up @@ -52,7 +52,7 @@ class App extends Component {
>
<SearchBox />
<button onClick={this.refresh}>Refresh cache</button>
<CustomHits />
<Hits />
</InstantSearch>
);
}
Expand All @@ -69,7 +69,7 @@ You should use this approach if you cannot use a user action as a specific event

```jsx
import React, { Component } from 'react';
import { InstantSearch, SearchBox } from 'react-instantsearch/dom';
import { InstantSearch, SearchBox, Hits } from 'react-instantsearch/dom';

class App extends Component {
constructor(props) {
Expand All @@ -96,7 +96,7 @@ class App extends Component {
onSearchStateChange={this.onSearchStateChange}
>
<SearchBox />
<CustomHits />
<Hits />
</InstantSearch>
);
}
Expand Down

0 comments on commit 82f3a76

Please sign in to comment.