From 03f416e8deeb1a10d87429506b31bcda79d8c62f Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Thu, 14 Mar 2024 14:56:41 -0600 Subject: [PATCH] add hooks thing from swyx --- exercises/01.latest-ref/README.mdx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exercises/01.latest-ref/README.mdx b/exercises/01.latest-ref/README.mdx index 0310afd9..7dc74447 100644 --- a/exercises/01.latest-ref/README.mdx +++ b/exercises/01.latest-ref/README.mdx @@ -169,6 +169,9 @@ It's important that you understand the trade-offs here! Remember, when we do this we're going back to the class component default. So just think about the unexpected behavior's you'll get when you switch the default like this. +📜 For more on hooks and closures, check +[Getting Closure on React Hooks](https://www.swyx.io/hooks) + 📜 For more on this subject, read [How React Uses Closures to Avoid Bugs](https://epicreact.dev/how-react-uses-closures-to-avoid-bugs).