Skip to content

Commit 65f58f4

Browse files
authored
make ref instruction more clear (#232)
1 parent 78a79cc commit 65f58f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exercises/04.dom/02.problem.deps/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ function Tilt({
3838
return (
3939
<div
4040
className="tilt-root"
41-
// 🐨 replace this ref prop with the tiltRef
41+
// 🐨 replace the contents of this ref prop with a reference to tiltRef
42+
// 💰 ref={tiltRef}
4243
ref={(tiltNode: HTMLVanillaTiltElement) => {
4344
// 🐨 move all of this to the useEffect callback
4445
if (!tiltNode) return

0 commit comments

Comments
 (0)