Skip to content

Commit 8194bc0

Browse files
indentation
1 parent 13dacbb commit 8194bc0

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

docs/docs/useDebounce.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A hook to debounce value changes. This can be used to perform an expensive operation based on react state, props or any calculated value.
44

5-
<pre>{`import {useDebounce} from 'react-use-custom-hooks';`}</pre>
5+
<pre>{`import { useDebounce } from 'react-use-custom-hooks';`}</pre>
66

77
### Usage example
88

docs/docs/useIsMounted.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This hook is used to check whether the component is mounted or not. This hook will return a function which will return a boolean value stating the component is mounted or not on calling. This will be useful if you want to perform some operation based on component is mounted or not like stop polling an api, update state etc.
44

5-
<pre>{`import {useIsMounted} from 'react-use-custom-hooks';`}</pre>
5+
<pre>{`import { useIsMounted } from 'react-use-custom-hooks';`}</pre>
66

77
### Usage example
88

docs/docs/useIsOnline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A hook for detecting network status of the user. This hook will return a boolean value indicating whether the user is online or not. The value will be automatically updated when the user's network status changes.
44

5-
<pre>{`import {useIsOnline} from 'react-use-custom-hooks';`}</pre>
5+
<pre>{`import { useIsOnline } from 'react-use-custom-hooks';`}</pre>
66

77
:::caution
88
The hook works based on value of `navigator.onLine` property, so this hook returns `true` does not always mean the user connected to the internet, it can also just a connection to some network.

docs/docs/useLegacyState.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This hook works similar to `this.setState` works in react class components. Here when you call `setState`, it shallow merges state partial into current state. It will be useful when you want change a class component to functional component.
44

5-
<pre>{`import {useLegacyState} from 'react-use-custom-hooks';`}</pre>
5+
<pre>{`import { useLegacyState } from 'react-use-custom-hooks';`}</pre>
66

77
### Usage example
88

docs/docs/usePrevious.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
If you want to access the previous props or state in functional components, you can use the `usePrevious` hook. This hook would work for props, state, or any other calculated value.
44

5-
<pre>{`import {usePrevious} from 'react-use-custom-hooks';`}</pre>
5+
<pre>{`import { usePrevious } from 'react-use-custom-hooks';`}</pre>
66

77
### Usage example
88

docs/docs/useSafeState.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ For small applications, leaking memory might not be a big issue since there is n
1616

1717
This hook will prevent these kind of memory leaks by checking whether the component is mounted before `setState` operation, if the component is unmounted, it will just ignore the `setState` call. The API is same as react's `useState` hook, so you can use this hook instead of `useState` for asynchronous operation to avoid any memory leak.
1818

19-
<pre>{`import {useSafeState} from 'react-use-custom-hooks';`}</pre>
19+
<pre>{`import { useSafeState } from 'react-use-custom-hooks';`}</pre>
2020

2121
### Usage example
2222

docs/docs/useTitle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A hook to manage title value of document.
44

5-
<pre>{`import {useTitle} from 'react-use-custom-hooks';`}</pre>
5+
<pre>{`import { useTitle } from 'react-use-custom-hooks';`}</pre>
66

77
### Usage example
88

0 commit comments

Comments
 (0)