diff --git a/README.md b/README.md index 701b012360..616a9563f5 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 ab0bc42921..fe0344f2a6 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;