Skip to content

Commit df65190

Browse files
authored
Update README.md
1 parent 7d97a38 commit df65190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ import useA11y from '@react-three/a11y' then
6767

6868
const My3DComponent = (props) {
6969

70-
//call useA11yContext to get the A11yContext from the provider
71-
const a11yContext = useA11yContext();
70+
//call useA11y to get the A11yContext from the provider
71+
const a11yContext = useA11y();
7272
//now you have access to a11yContext.hover, a11yContext.focus and a11yContext.pressed
7373

7474
return (

0 commit comments

Comments
 (0)