react-step-builder
react-step-builder copied to clipboard
memoize the provider of StepProvider
- wrap functions in callback
- add missing useEffect dependencies
- add error handling in useStep
I don't understand the reason behind having only 25 lines of code in useStep()