We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20b7978 commit 3879949Copy full SHA for 3879949
README.md
@@ -50,8 +50,8 @@ const Step1 = () => {
50
51
return (
52
<>
53
- <button onClick={previousStep}>Previous ⏮️</button>
54
- <button onClick={nextStep}>Next ⏭</button>
+ <button onClick={() => previousStep()}>Previous ⏮️</button>
+ <button onClick={() => nextStep()}>Next ⏭</button>
55
</>
56
);
57
};
@@ -164,8 +164,8 @@ const Step1 = () => {
164
165
<p>Step 1</p>
166
{isLoading && <p>loading...</p>}
167
- <button onClick={previousStep}>Previous</button>
168
- <button onClick={nextStep}>Next</button>
+ <button onClick={() => previousStep()}>Previous</button>
+ <button onClick={() => nextStep()}>Next</button>
169
<div>
170
Has next step: {!isLastStep ? '✅' : '⛔'}
171
<br />
0 commit comments