Skip to content

Commit

Permalink
docs(usePreferredColorScheme): simplify example
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Oct 24, 2019
1 parent 7aafe49 commit 0bbdd62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/web-api-hooks/src/usePreferredColorScheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import useMedia from './useMedia';
*
* @example
* function Component() {
* const preferredColorScheme = usePreferredColorScheme();
* const isDarkMode = usePreferredColorScheme() === 'dark';
* const preferDarkMode = usePreferredColorScheme() === 'dark';
* // ...
* }
*/
Expand Down

0 comments on commit 0bbdd62

Please sign in to comment.