@resourge/react-fetch
Version:
[](LICENSE)
19 lines (16 loc) • 452 B
JavaScript
/**
* react-fetch v1.43.1
*
* Copyright (c) resourge.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
import { useId as useId$1, useState } from 'react';
let id = 0;
const getNewId = () => String(id++);
const useId = useId$1 != null ? useId$1 : () => useState(getNewId)[0];
export { getNewId, useId };
//# sourceMappingURL=useIdShim.js.map