Skip to content

Commit ff590a8

Browse files
authored
Merge pull request #5 from aaronschendel/main
Update A-where-react-can-be-slow.md - minor typo
2 parents 040eea1 + 55969d9 commit ff590a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lessons/05-performance-optimizations/A-where-react-can-be-slow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ keywords:
1818

1919
React generally has a very good performance profile, no matter what "thought leaders" may be tweeting about it. If you write React in a way consistent with the way I taught you in this class and the intro as well as the docs, you really don't need to concern yourself too much with "is this going to perform well" because React tends to be really good at making sure average code runs fast enough.
2020

21-
To be entirely honest, it was _hard_ to make non-performant code in React. We're going to have to resort to adding artificial slowdowns in our code because my MacBook could consistently churn through the code inefficient code anyway, making it hard to see performance gains we're going to get. Nonetheless, these concepts aren't important until they're _very_ important.
21+
To be entirely honest, it was _hard_ to make non-performant code in React. We're going to have to resort to adding artificial slowdowns in our code because my MacBook could consistently churn through the inefficient code anyway, making it hard to see performance gains we're going to get. Nonetheless, these concepts aren't important until they're _very_ important.
2222

2323
> 💡 I am about to show your four different ways to make React perform better in certain circumstances. My **strong** advice for is to not preemptively use these. You should wait until you have a performance problem in your UI before you try to optimize it. These tools make your code harder to read and makes bugs hard to track down (since you're getting outside of the normal way of writing React.) Have problems before you solve them.
2424

0 commit comments

Comments
 (0)