Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: make correct to LabelledStatement example
Browse files Browse the repository at this point in the history
closes #4
  • Loading branch information
Boshen committed Apr 27, 2023
1 parent df7bfaf commit 94ee82c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blog/grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ We probably have never written a single line of labelled statement, but it is le
The following syntax is correct, it returns a labelled statement (not object literal).

```javascript
const foo = (bar) => ({ baz: quaz });
<Foo bar={() => {baz: 'quaz'}} />
// ^^^^^^^^^^^^^ `LabelledStatement`
```

---
Expand Down

0 comments on commit 94ee82c

Please sign in to comment.