Skip to content

Commit 79d33df

Browse files
authored
unused React import for hooks example (#1979)
I believe this was just from a copy/paste from the JSX example
1 parent 3140018 commit 79d33df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/hooks-custom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ When we want to share logic between two JavaScript functions, we extract it to a
7474
**A custom Hook is a JavaScript function whose name starts with "`use`" and that may call other Hooks.** For example, `useFriendStatus` below is our first custom Hook:
7575

7676
```js{3}
77-
import React, { useState, useEffect } from 'react';
77+
import { useState, useEffect } from 'react';
7878
7979
function useFriendStatus(friendID) {
8080
const [isOnline, setIsOnline] = useState(null);

0 commit comments

Comments
 (0)