MCPcopy Index your code
hub / github.com/WebDevSimplified/react-multistep-form / back

Function back

src/useMultistepForm.ts:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 }
12
13 function back() {
14 setCurrentStepIndex(i => {
15 if (i <= 0) return i
16 return i - 1
17 })
18 }
19
20 function goTo(index: number) {
21 setCurrentStepIndex(index)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected