unused React import for hooks example (#1979)

I believe this was just from a copy/paste from the JSX example
This commit is contained in:
Raj Nigam
2020-03-09 10:49:48 -04:00
committed by GitHub
parent 3140018914
commit 79d33dfe6e

View File

@@ -74,7 +74,7 @@ When we want to share logic between two JavaScript functions, we extract it to a
**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:
```js{3}
import React, { useState, useEffect } from 'react';
import { useState, useEffect } from 'react';
function useFriendStatus(friendID) {
const [isOnline, setIsOnline] = useState(null);