"Dynamic" Autocompletion

Hello, I’m developping a script editor for a React web app.
I implemented autocompletion with custom strings, but the problem is that the hints are static.
For exemple if I have the strings : “Javascript”,“Java”, “React”, “Codemirror” in my hinter and i begin typing “J” and i press Ctrl-Space, i would like the hints to be updated dynamically with only the strings that begin with “J”, so in my exemple the hinter would show me, only “Javascript” and “Java”.
Thank you for your help.

The show-hint addon will automatically pick up the "hintWords" helper value (an array of strings), if you defined one, and use those, in the way you described, to provide filtered completions.

Could you show me how to achieve that?