Skip to content

Commit a9c5d31

Browse files
Merge branch 'master' of https://github.com/reactjs/reactjs.org into sync-d2d2ee42
2 parents 54a0feb + d2d2ee4 commit a9c5d31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/docs/faq-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class Foo extends Component {
8383

8484
>**Note:**
8585
>
86-
>Using an arrow function in render creates a new function each time the component renders, which may have performance implications (see below).
86+
>Using an arrow function in render creates a new function each time the component renders, which may break optimizations based on strict identity comparison.
8787
8888
### Is it OK to use arrow functions in render methods? {#is-it-ok-to-use-arrow-functions-in-render-methods}
8989

content/docs/hooks-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ function reducer(state, action) {
226226
}
227227
}
228228

229-
function Counter({initialState}) {
229+
function Counter() {
230230
const [state, dispatch] = useReducer(reducer, initialState);
231231
return (
232232
<>

0 commit comments

Comments
 (0)