File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ React Dynamic Tabs with full API
23
23
24
24
- [ Installation] ( #installation )
25
25
- [ Basic Example] ( #basic-example )
26
+ - [ ready function] ( #ready-function )
26
27
- [ Options] ( #options )
27
28
- [ tabs] ( #tabs )
28
29
- [ selectedTabID] ( #selectedTabID )
@@ -123,13 +124,17 @@ export default () => {
123
124
};
124
125
```
125
126
126
- ** NOTE : **
127
+ ## ready function
127
128
128
- - ready function and instance Object will not be changed after re-rendering multiple times.
129
+ - ready function is returned by useDynTabs hook.
130
+
131
+ - ready function accepts a function as a parameter and calls it with instance object after the first render, when the component is mounted.
129
132
130
133
- Tabs can't be manipulated safely before the first render, use ready() to make a function available after the component is mounted.
131
134
132
- - ready function accepts a function as a parameter and calls it with instance object after the first render, when the component is mounted.
135
+ - ready function can be called multiple times
136
+
137
+ - ready function and instance Object will not be changed after re-rendering multiple times.
133
138
134
139
- When ready function is called after the first render, it calls its function parameter with instance object immediately.
135
140
You can’t perform that action at this time.
0 commit comments