diff --git a/src/content/5/en/part5b.md b/src/content/5/en/part5b.md index abc37d6d68..6e69751b73 100644 --- a/src/content/5/en/part5b.md +++ b/src/content/5/en/part5b.md @@ -374,6 +374,7 @@ const App = () => { const noteFormRef = useRef() // highlight-line const noteForm = () => ( +// (Using 'ref' throws an error. According to this, https://react.dev/warnings/special-props, 'ref' and 'key' "are two special props which are used by React, and are thus not forwarded to the component". It should be renamed to something else.) // highlight-line @@ -401,6 +402,7 @@ const Togglable = (props) => { // highlight-line } // highlight-start +// It should be renamed here too useImperativeHandle(props.ref, () => { return { toggleVisibility } })