Skip to content

Commit 3cb0f70

Browse files
authored
Update part5b.md
Added new link for Refs since react docs has been updated and the old documentation directs us to the new link.
1 parent 7aa385d commit 3cb0f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/5/en/part5b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ Our current implementation is quite good; it has one aspect that could be improv
361361

362362
After a new note is created, it would make sense to hide the new note form. Currently, the form stays visible. There is a slight problem with hiding the form. The visibility is controlled with the <i>visible</i> variable inside of the <i>Togglable</i> component. How can we access it outside of the component?
363363

364-
There are many ways to implement closing the form from the parent component, but let's use the [ref](https://reactjs.org/docs/refs-and-the-dom.html) mechanism of React, which offers a reference to the component.
364+
There are many ways to implement closing the form from the parent component, but let's use the [ref](https://react.dev/learn/referencing-values-with-refs) mechanism of React, which offers a reference to the component.
365365

366366
Let's make the following changes to the <i>App</i> component:
367367

0 commit comments

Comments
 (0)