Skip to content

Instantly share code, notes, and snippets.

bvaughn / Selectable.jsx
Last active August 27, 2019 17:54 — forked from AlexFrazer/Selectable.jsx
Fork of to answer question
import * as React from "react";
import * as rbush from "rbush";
export const SelectableContext = React.createContext();
export class SelectableGroup extends React.PureComponent {
static defaultProps = {
tolerance: 10
<!DOCTYPE html>
<meta charset="utf-8"/>
<title>js-search indexing</title>
<script src=""></script>
<script src="./suite.js"></script>
<h1>Open the console to view the results</h1>