Skip to content

Commit 28b9663

Browse files
committed
docs: update readme
1 parent cdbe68f commit 28b9663

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ yarn add @use-hooks/interval
4949
```js
5050
import React, { useState } from 'react';
5151

52-
import useInterval from '@use-hooks/interval/index';
52+
import useInterval from '@use-hooks/interval';
5353

5454
export default function App() {
5555
const [count, setCount] = useState(0);

example/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState } from 'react';
22

3-
import useInterval from '../src/index';
3+
import useInterval from '../src';
44

55
export default function App() {
66
const [count, setCount] = useState(0);

0 commit comments

Comments
 (0)