How to use the react-instantsearch-dom.connectRange function in react-instantsearch-dom

To help you get started, we’ve selected a few react-instantsearch-dom examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github algolia / react-instantsearch / examples / tourism / App.js View on Github external
min={min}
          max={max}
          values={[currentRefinement.min, currentRefinement.max]}
          onChange={this.onChange}
          onValuesUpdated={this.onValuesUpdated}
        />
        <div>
          <div>{currentValues.min}</div>
          <div>{currentValues.max}</div>
        </div>
      
    ) : null;
  }
}

const ConnectedRange = connectRange(Range);

export default withURLSync(App);
github algolia / react-instantsearch / stories / 3rdPartyIntegrations.stories.js View on Github external
style={{ left: '0%', position: 'absolute', marginLeft: '0px' }}
        &gt;
          <div>{currentValues.min}</div>
        
        <div style="{{">
          <div>{currentValues.max}</div>
        </div>
      
    ) : null;
  }
}

const ConnectedRange = connectRange(Range);

export default ConnectedRange;
github algolia / react-instantsearch / examples / e-commerce / widgets / PriceSlider.js View on Github external
width: `${100 / count}%`,
                  left: `${percent}%`,
                }}
              &gt;
                <span style="{{">$</span>
                {formatNumber(value)}
              
            ))}
          
        )}
      
    
  );
};

export default connectRange(PriceSlider);
github algolia / react-instantsearch / examples / e-commerce / widgets / Ratings.js View on Github external
/&gt;
                    
                  );
                })}

                <span>{rating.count}</span>
              
            
          );
        })}
      
    
  );
};

export default connectRange(Ratings);