Skip to content

Commit

Permalink
[FIX] doc: missing this in exemple in the doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jpp-odoo committed Jun 26, 2024
1 parent 66a8013 commit a518f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/reference/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ In this example, the component will be able to access the `input` with the `useR

```js
class Parent extends Component {
inputRef = useRef("someInput");
this.inputRef = useRef("someInput");

someMethod() {
// here, if component is mounted, refs are active:
Expand Down

0 comments on commit a518f2f

Please sign in to comment.