Browse Source

Fix typo (#4021)

main
harish-sethuraman 3 years ago
committed by GitHub
parent
commit
8c750a9e45
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/pages/learn/queueing-a-series-of-state-updates.md
  2. 2
      beta/src/pages/learn/start-a-new-react-project.md

2
beta/src/pages/learn/queueing-a-series-of-state-updates.md

@ -55,7 +55,7 @@ setNumber(0 + 1);
setNumber(0 + 1);
```
But there is one other factor at work here to discuss. **React waits until *all* code in the the event handlers has run before processing your state updates.** This is why the re-render only happens *after* all these `setNumber()` calls.
But there is one other factor at work here to discuss. **React waits until *all* code in the event handlers has run before processing your state updates.** This is why the re-render only happens *after* all these `setNumber()` calls.
This might remind you of a waiter taking an order at the restaurant. A waiter doesn't run to the kitchen at the mention of your first dish! Instead, they let you finish your order, let you make changes to it, and even take orders from other people at the table.

2
beta/src/pages/learn/start-a-new-react-project.md

@ -44,7 +44,7 @@ npm start
</TerminalBlock>
For more information, [check out the the official guide](https://create-react-app.dev/docs/getting-started).
For more information, [check out the official guide](https://create-react-app.dev/docs/getting-started).
> Create React App doesn't handle backend logic or databases; it just creates a frontend build pipeline. This means you can use it with any backend you want. But if you're looking for more features like routing and server-side logic, read on!

Loading…
Cancel
Save