Salim TOURE• 240
@limsael
Submitted
What specific areas of your project would you like help with?
- The javascript
@MateuszSobiech
@limsael
Submitted
What specific areas of your project would you like help with?
@MateuszSobiech
Posted
"What specific areas of your project would you like help with? - The javascript"
What would you like to know?
@SvitlanaSuslenkova
Submitted
@MateuszSobiech
Posted
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.
Marked as helpful
@SvitlanaSuslenkova
Submitted
What specific areas of your project would you like help with?
Any advice?
@MateuszSobiech
Posted
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) { ... }
Marked as helpful