const GharwapasiForm = () => {
const [activeStep,setActiveStep] = useState(0);
const steps = [
'Click Your Photo',
'Personal Details',
'Submit Application',
];
return (
<FormContainer className='row'>
<Stepper activeStep={0} className="py-2" >
{steps.map((label) => (
<Step key={label}>
<StepLabel>{label}</StepLabel>
</Step>
))}
</Stepper>
</FormContainer>
)
}
export default GharwapasiForm
Is active step one i want to render "step one"if step two i want to render "This is the step two" and similarly for the third step the problem is only know how to write if and else like {condition ? "render if":"render else"} what if i had to check more than one statement
{a===1 ? "one" : a===2 ? "two" : "three"}