React · Lesson 119 of 120
Where React Is Going
Compiler and server.
React keeps evolving. Two big directions stand out. A compiler that optimizes your code for you, and more work moving to the server.
- React evolves
- A compiler
- The server
The React Compiler
The React Compiler analyzes your components at build time, and adds memoization automatically. You write plain, simple code, and it runs fast. Manual memo, use memo, and use callback become rare.
| key | value |
|---|---|
| When | build time |
| Adds | memoization |
| You write | plain code |
| Less | manual memo |
Server first
Server components, and server functions, let frameworks run more code on the server. Less JavaScript reaches the browser, and data loading gets simpler. Actions, and hooks like use action state, connect forms straight to the server.
| key | value |
|---|---|
| Server components | no JS shipped |
| Server functions | call the server |
| Actions | forms to server |
| Result | faster apps |
Summary
The compiler and server features make React faster, with simpler code. Next, what to learn next.
Key takeaways- Compiler
- Server
- Actions
Next up: What to Learn Next — keep building