Skip to content

Instantly share code, notes, and snippets.

@dance2die
Last active March 30, 2019 20:56
class Trie {
has(word) { return true; }
}
function useTrie() {
const trie = React.useState(new Trie())[0];
return { ...trie };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment