From 82f3a76b4a7cd9a0dff759ceaddd59569269198d Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Tue, 19 Dec 2017 23:26:11 +0100 Subject: [PATCH] docs: regular Hits component --- docgen/src/guide/Refreshing_cache.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docgen/src/guide/Refreshing_cache.md b/docgen/src/guide/Refreshing_cache.md index ca27f42aec..62922eb0f2 100644 --- a/docgen/src/guide/Refreshing_cache.md +++ b/docgen/src/guide/Refreshing_cache.md @@ -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) { @@ -52,7 +52,7 @@ class App extends Component { > - + ); } @@ -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) { @@ -96,7 +96,7 @@ class App extends Component { onSearchStateChange={this.onSearchStateChange} > - + ); }