# give/4.16.9/src/Views/Components/ListTable/hooks/useUniqueId.ts

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 8 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/Views/Components/ListTable/hooks/useUniqueId.ts
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/Views/Components/ListTable/hooks/useUniqueId.ts
- Modified: 2022-05-11T23:49:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/Views/Components/ListTable/hooks/useUniqueId.ts#L10-L20`.

```typescript
import _uniqueId from 'lodash/uniqueId';
import {useState} from "react";

export const useUniqueId = (prefix) => {
    const [uniqueId] = useState(_uniqueId(prefix));
    return uniqueId;
}

```
