-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
revision for lesson 2 #12
Conversation
the long term I think we should evaluate possible replaces for <code>redux</code> that don't | ||
have this preformance issue like <code>jotai</code>, <code>zustand</code>, or <code>recoil.js</code>. | ||
- <code>React.useMemo(callback)</code> and <code>React.memo(Component, arePropsEqual?)</code> are | ||
both use to memoize things. The former is used for memoizing computations _within_ a functional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both use to memoize things. The former is used for memoizing computations _within_ a functional | |
both used to memoize things. The former is used for memoizing computations _within_ a functional |
emitter?.on("bar", setBar); | ||
|
||
return <h1>bar = {bar}</h1>; | ||
}, arePropsEqual); | ||
``` | ||
|
||
## Notes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for answering my questions! 😄
@@ -4,6 +4,17 @@ export default function Exercise2() { | |||
return ( | |||
<div> | |||
<h1>Exercise 2: Prevent Context From Rendering</h1> | |||
<p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this, very helpful!
4b75d07
to
b884028
Compare
f19f370
to
b0d1cbd
Compare
b0d1cbd
to
e5a43dc
Compare
Summary:
This PR addresses the feedback for lesson 2. It also adds a warning banner to all exercises letting people know that HMR may not work and that they should reload after making changes to the exercises.
Issue: None
Test plan: