mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
update faq on perf with function props (#1994)
This commit is contained in:
@@ -83,7 +83,7 @@ class Foo extends Component {
|
||||
|
||||
>**Note:**
|
||||
>
|
||||
>Using an arrow function in render creates a new function each time the component renders, which may have performance implications (see below).
|
||||
>Using an arrow function in render creates a new function each time the component renders, which may break optimizations based on strict identity comparison.
|
||||
|
||||
### Is it OK to use arrow functions in render methods? {#is-it-ok-to-use-arrow-functions-in-render-methods}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user