1/5
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
What does JS run on?
The main thread.
What does React on the main thread update? Name some processes.
Fetching (async)
Load (mounting)
Refresh (useEffect)
Why is it important for less things on main thread? What is a specific issue? A specific example?
May freeze up and cause lag.
Specific, JS will NOT snap to current time, has its own time so will be delayed than real time.
A frozen load wheel.
What runs on other threads? Specifics?
CSS
Motion (uses WAAPI)
Therefore, what should you reach for usually?
CSS or Motion, or things that use WAAPI
What is WAAPI?
Low-level API that is similar to CSS animations