dillon1000/react

Commit

[playground] Allow (Arrow)FunctionExpressions

This was a pet peeve where our playground could only compile top level
FunctionDeclarations. Just synthesize a fake identifier if it doesn't
have one.

ghstack-source-id: 882483c79ceebf382b69e37aed1f293efff9c5a7
Pull Request resolved: https://github.com/facebook/react/pull/30729
Browse files
Changed paths1 file
First-parent comparison
M compiler/apps/playground/components/Editor/EditorImpl.tsx Modified
Patch

Files changed

Rendering syntax-highlighted changes…