The example uses addTagHelper which is not supported among other issues to get it to compile.
However, after figuring out how to get it to compile without warnings my call:
' this._context = await this._canvasRef.CreateCanvas2DAsync();'
created an 'unhandled exception rendering component ':
Microsoft.JSInterop.JSException: t.getContext is not a function'