advanced-react-apis icon indicating copy to clipboard operation
advanced-react-apis copied to clipboard

Changelog

Open kentcdodds opened this issue 4 years ago • 1 comments

Here's what's going to be different in the next version of the advanced-react-hooks workshop (you can find all these changes in the next branch until the videos are re-recorded):

  • Everything is TypeScript. There's a new script you can run to remove the TypeScript automatically if you want: ./scripts/remove-ts.
  • General improvements to the workshop content based on feedback from learners
  • Exercise 2 (useCallback) has removed the "safeDispatch" extra credit because it's unnecessary: https://github.com/facebook/react/pull/22114
  • Exercise 2 (useCallback) has been improved quite a bit based on feedback from learners. Turns out it was more difficult that it should be due primarily to assumptions I made on people's understanding of concepts like memoization and the instructions weren't completely clear on why we were making the changes we did. So the instructions have been clarified and added explainers on memoization as well.
  • Exercise 2 (useCallback) has two new extra credits for handling race conditions and using abort controller to cancel requests.
  • Exercise 3 (context) has a new extra credit for removing context to illustrate further why you might not need context in most situations.
  • Exercise 4 (useLayoutEffect) is dead simple and it can stay that way...
  • Exercise 5 (useImperativeHandle) and Exercise 6 (useDebugValue) both received some minor updates to the instructions

kentcdodds avatar Sep 16 '21 17:09 kentcdodds

Conversation locked to avoid conversation about any of these points. These are more notes than anything else. If you want to discuss any of these, open another issue.

kentcdodds avatar Sep 16 '21 17:09 kentcdodds