@limsaelSubmitted 2 months ago
What specific areas of your project would you like help with?
- The javascript
"What specific areas of your project would you like help with? - The javascript"
What would you like to know?
It's been 5 months, so if you remake logic of the code, I can help with code review. Tell me if you are interested.
Circle numbers of steps work as buttons too. I thought that it can be useful.
What specific areas of your project would you like help with?Any advice?
Hi, good work. Consider to change state from booleans to number or string. I think it might simplify the code.
const [stepOne, setStepOne] = useState(true);
const [stepTwo, setStepTwo] = useState(false);
const [stepThree, setStepThree] = useState(false);
const [stepFour, setStepFour] = useState(false);
type StepState = 1 | 2 | 3 | 4;
const [step, setStep] = useState<StepState>(1);
switch(step) { ... }