Skip to content

Commit

Permalink
docs: change the unnecessarily mocking tone of the React docs (#1905)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar authored Apr 8, 2024
1 parent 1b3a120 commit 69c1c23
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions website/docs/tutorials/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,12 @@ Any expressions are allowed, not just simple variables. The only difference is,
// Dear Watson,<0/>it's not exactly what I had in my mind.
```

Obviously, you can also shoot yourself in the foot. Some expressions are _valid_ and won't throw any error, yet it doesn't make any sense to write:
Some expressions are _valid_ and won't throw any error, yet it doesn't make any sense to write:

```jsx
// Oh, seriously?
<Trans>{isOpen && <Modal />}</Trans>
```

If in doubt, imagine how the final message should look like.

### Message ID

At this point we're going to explain what message ID is and how to set it manually.
Expand Down

0 comments on commit 69c1c23

Please sign in to comment.