Last active
March 30, 2019 20:56
-
-
Save dance2die/3107d7b0a3d3eeeb0dcad5886f5b1bf9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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