Skip to content

Commit 38e9dac

Browse files
authored
Merge pull request #3399 from Yisaaaa/patch-6
Update part5b.md
2 parents 201d9d3 + cc98c19 commit 38e9dac

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
@@ -359,7 +359,7 @@ branch <i>part5-5</i>.
359359

360360
Our current implementation is quite good; it has one aspect that could be improved.
361361

362-
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?
362+
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> state variable inside of the <i>Togglable</i> component. How can we access it outside of the component?
363363

364364
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

0 commit comments

Comments
 (0)