Skip to content

Commit 92475ab

Browse files
committed
chore: Remove resetIdCounter from docs and types
1 parent efd6807 commit 92475ab

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

README.md

-13
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,6 @@ export default () => (
5959
6060
## API
6161
62-
### resetIdCounter(): void
63-
64-
Allows reseting the internal id counter which is used to generate unique id's for tabs and tab panels.
65-
66-
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.
67-
68-
```js
69-
import { resetIdCounter } from 'react-tabs';
70-
71-
resetIdCounter();
72-
ReactDOMServer.renderToString(...);
73-
```
74-
7562
## Components
7663
7764
react-tabs consists of 4 components which all need to be used together.

index.d.ts

-2
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,3 @@ export const Tabs: FunctionComponent<TabsProps>;
4545
export const TabList: FunctionComponent<TabListProps>;
4646
export const Tab: FunctionComponent<TabProps>;
4747
export const TabPanel: FunctionComponent<TabPanelProps>;
48-
49-
export declare function resetIdCounter(): void;

0 commit comments

Comments
 (0)