mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
Performance boost in some cases
This commit is contained in:
@@ -7,7 +7,7 @@ prev: update.html
|
||||
next: perf.html
|
||||
---
|
||||
|
||||
If your React component's render function is "pure" (in other words, it renders the same result given the same props and state), you can use this mixin for a considerable performance boost.
|
||||
If your React component's render function is "pure" (in other words, it renders the same result given the same props and state), you can use this mixin for a performance boost in some cases.
|
||||
|
||||
Example:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user