dillon1000/react

Commit

[patch] Generate hook guards as function expressions

--- 

Arrow functions are not compatible with es3, which we sometimes target. This 
helps us make babel transform logic less complex
Browse files
Changed paths2 files
First-parent comparison
M compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CodegenReactiveFunction.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/flag-enable-emit-hook-guards.expect.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…