From 92475aba63a8a9201e3340f335eb0b47daea5cdb Mon Sep 17 00:00:00 2001 From: Daniel Tschinder <231804+danez@users.noreply.github.com> Date: Sun, 17 Apr 2022 14:15:24 +0000 Subject: [PATCH] chore: Remove `resetIdCounter` from docs and types --- README.md | 13 ------------- index.d.ts | 2 -- 2 files changed, 15 deletions(-) diff --git a/README.md b/README.md index 701b01236..616a9563f 100644 --- a/README.md +++ b/README.md @@ -59,19 +59,6 @@ export default () => ( ## API -### resetIdCounter(): void - -Allows reseting the internal id counter which is used to generate unique id's for tabs and tab panels. - -You should never need to use this in the browser. Only if you are running an isomorphic react app that is rendered on the server you should call `resetIdCounter()` before every page render so that the ids that get generated on the server match the ids generated in the browser. - -```js -import { resetIdCounter } from 'react-tabs'; - -resetIdCounter(); -ReactDOMServer.renderToString(...); -``` - ## Components react-tabs consists of 4 components which all need to be used together. diff --git a/index.d.ts b/index.d.ts index ab0bc4292..fe0344f2a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -45,5 +45,3 @@ export const Tabs: FunctionComponent; export const TabList: FunctionComponent; export const Tab: FunctionComponent; export const TabPanel: FunctionComponent; - -export declare function resetIdCounter(): void;