[Beta] fixed grammatical typo in render-and-commit.md (#4881)

This commit is contained in:
Joel Mathew Koshy
2022-08-07 20:50:30 +05:30
committed by GitHub
parent 7c3e6dc55c
commit 4808a469fa

View File

@@ -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>