hinting in react-codemirror 2

unable to set anyword hinting method dynamically
returning error anyword is not defined

@marijn