Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Fix typo in readme #252

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ Notice:
1. To update state in React, we use `this.setState` - we don't set it directly except in the constructor. `setState` only takes the properties we're interested in updating and our component will re-render as appropriate.
1. We're using class property initializers with arrow functions (e.g. `onIncrement = () => ...`).
* Declaring these as arrow functions avoids issues with orphaned uses of `this`.
* Setting them as instance properties creates them only once - a common mistake is to initialize them in the `render` method which allocates closures one every call to `render`.
* Setting them as instance properties creates them only once - a common mistake is to initialize them in the `render` method which allocates closures on every call to `render`.

We won't use this stateful component any further in this starter.
Stateful components are great for creating components that focus solely on presenting content (as opposed to handling core application state).
Expand Down