1) If it is to edit the reaction (and not the user-defined function), it should be "render () {return;}" against your code
This is a 100% syntax error, the browser ignores it because it should, if you use it in the definition definition class, the following syntax:
class Test { objectExample: { some: "value" } functionExample() { return someExecutionCode(); } lambdaFunctionExample = () => { return someExecutionCode(); } }
But you mix the 1st and 2nd lines at the same time, start as the definition of an object, with the body as a function that do not fit together.
2) Your rendering function does NOT return anything, it does an array, but does not return it.
source share