Skip to content

Commit 3879949

Browse files
committed
docs: add step index in next and previous step
1 parent 20b7978 commit 3879949

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ const Step1 = () => {
5050

5151
return (
5252
<>
53-
<button onClick={previousStep}>Previous ⏮️</button>
54-
<button onClick={nextStep}>Next ⏭</button>
53+
<button onClick={() => previousStep()}>Previous ⏮️</button>
54+
<button onClick={() => nextStep()}>Next ⏭</button>
5555
</>
5656
);
5757
};
@@ -164,8 +164,8 @@ const Step1 = () => {
164164
<>
165165
<p>Step 1</p>
166166
{isLoading && <p>loading...</p>}
167-
<button onClick={previousStep}>Previous</button>
168-
<button onClick={nextStep}>Next</button>
167+
<button onClick={() => previousStep()}>Previous</button>
168+
<button onClick={() => nextStep()}>Next</button>
169169
<div>
170170
Has next step: {!isLastStep ? '' : ''}
171171
<br />

0 commit comments

Comments
 (0)