Browse Source

update faq on perf with function props (#1994)

main
Alex Krolick 6 years ago
committed by GitHub
parent
commit
c8703314dd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/faq-functions.md

2
content/docs/faq-functions.md

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

Loading…
Cancel
Save