Browse Source

Fix typo

main
dan 3 years ago
committed by GitHub
parent
commit
9a5bf3e1f1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/pages/apis/usecontext.md

2
beta/src/pages/apis/usecontext.md

@ -1329,7 +1329,7 @@ Call `useContext` at the top level of your component to read and subscribe to [c
import { useContext } from 'react';
function MyComponent() {
const theme = useTheme(ThemeContext);
const theme = useContext(ThemeContext);
// ...
```

Loading…
Cancel
Save