Skip to content

Commit

Permalink
chore: Remove resetIdCounter from docs and types
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Apr 17, 2022
1 parent efd6807 commit 92475ab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,3 @@ export const Tabs: FunctionComponent<TabsProps>;
export const TabList: FunctionComponent<TabListProps>;
export const Tab: FunctionComponent<TabProps>;
export const TabPanel: FunctionComponent<TabPanelProps>;

export declare function resetIdCounter(): void;

0 comments on commit 92475ab

Please sign in to comment.