Browse Source

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

main
Joel Mathew Koshy 2 years ago
committed by GitHub
parent
commit
4808a469fa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/pages/learn/render-and-commit.md

2
beta/src/pages/learn/render-and-commit.md

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

Loading…
Cancel
Save