DEV Community

Discussion on: @cshooks/usetrie, A React Hook for Typeahead/Autocomplete

Collapse
 
dance2die profile image
Sung M. Kim • Edited

😮...
Those are great tips, Nick 👊

Regarding the public keyword, I was confused coming from C#, in which access modifiers are private by default 😅 (now I know it's public).

And Words does seem unnecessary as Word[] shows the intention (of word being an array type) better 😂.

It seems like I need to get used to built-in types from those tips.

Thank you for providing me a way to improve the code-base, Nick.

Thread Thread
 
nickytonline profile image
Nick Taylor

No problem. Glad to see you're having fun in TypeScript land. 🎡

Thread Thread
 
dance2die profile image
Sung M. Kim

Thank you for the warm welcome.
It's been fun & need to unlearn what I know first 😉