Skip to content

Commit

Permalink
8. Optimizing React with MillionJS
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiane-abou-abderrahim committed Apr 11, 2024
1 parent f7d953c commit c557e8d
Show file tree
Hide file tree
Showing 4 changed files with 253 additions and 70 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,8 @@
2. try to updated the `chosenCount` like this `setChosenCount(chosenCount + 1);` to see that it will get a strange result
3. update the `chosenCount` state with the function form where you get the `prevChosenCount` to get the `newCount` + 1
4. React performs state batching, which simply means that multiple state updates that are triggered from the same function, for example, are batched together and will only lead to one component function execution

## 8. Optimizing React with MillionJS

1. run `npm install million`
2. update `vite.config.js`
Loading

0 comments on commit c557e8d

Please sign in to comment.