I tried to add ``` const componentExample = 'const foo = function* (x) { const y = yield x + 1; return y + 2; }'; ``` as codeContext. But I have been getting the following syntax error: ``` SyntaxError: unknown: Unexpected token (11:16) 9 | render() { 10 | return ( > 11 | const foo = function* (x) { const y = yield x + 1; return y + 2; } | ^ 12 | ); 13 | } 14 | } ``` Not sure what I am doing wrong. I also tried to use raw loader but doesnt seem to load.
I tried to add
as codeContext. But I have been getting the following syntax error:
Not sure what I am doing wrong. I also tried to use raw loader but doesnt seem to load.