mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Add note about performance implications of .bind in render
This commit is contained in:
@@ -62,6 +62,8 @@ class Foo extends Component {
|
||||
}
|
||||
```
|
||||
|
||||
**Note**: Using an arrow function or binding in render creates a new function each time the component renders, which may have performance implications (see below).
|
||||
|
||||
#### Arrow Function in Render
|
||||
|
||||
```jsx
|
||||
|
||||
Reference in New Issue
Block a user