mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
[Beta] fixed grammatical typo in render-and-commit.md (#4881)
This commit is contained in:
committed by
GitHub
parent
7c3e6dc55c
commit
4808a469fa
@@ -138,7 +138,7 @@ Rendering must always be a [pure calculation](/learn/keeping-components-pure):
|
||||
* **Same inputs, same output.** Given the same inputs, a component should always return the same JSX. (When someone orders a salad with tomatoes, they should not receive a salad with onions!)
|
||||
* **Mind its own business.** It should not change any objects or variables that existed before rendering. (One order should not change anyone else's order.)
|
||||
|
||||
Otherwise, you can encounter confusing bugs and unpredictable behavior as your codebase grows in complexity. When developing in "Strict Mode," React calls each component's function twice, which can help surface mistakes caused by impure functions.
|
||||
Otherwise, you can encounter confusing bugs and unpredictable behavior as your codebase grows in complexity. When developing in "Strict Mode", React calls each component's function twice, which can help surface mistakes caused by impure functions.
|
||||
|
||||
</Gotcha>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user