We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 155b761 commit 765e806Copy full SHA for 765e806
apps/components_guide_web/lib/components_guide_web/templates/react_typescript/editor.html.eex
@@ -294,8 +294,6 @@ require(["vs/editor/editor.main"], function () {
294
})
295
.then(({ code, codeBytes, duration }) => {
296
console.log("NEW CODE!");
297
- //window.useReducer = window.React.useReducer;
298
- //window.useMemo = window.React.useMemo;
299
const hookNames = Object.keys(window.React).filter(name => name.startsWith('use'));
300
const preamble = hookNames.map(hookName => `const ${hookName} = window.React.${hookName}`).join(';');
301
const executor = new Function(`${preamble}; ${code}; return exports.Example();`);
0 commit comments