Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

201
Views
I Have a problem in rendering a component which has nested div's in React js

When I render this question component multiple times in app.js the nested div elements are not rendering.

Question component code:

const Question = () => {
  return (
    <div className="question-box">
      <TextField
        fullWidth
        label="Enter Question!"
        id="fullWidth"
        multiline
        minRows={2}
        maxRows={10}
        color="success"
      />

      <div>
        <Stack spacing={2}>
          <TextField id="filled-basic" label="Option1" variant="filled" />
          <TextField id="filled-basic" label="Option2" variant="filled" />
          <TextField id="filled-basic" label="Option3" variant="filled" />
          <TextField id="filled-basic" label="Option4" variant="filled" />
        </Stack>
      </div>

      <div>
        <Stack direction="row" spacing={10}>
          <TextField
            id="filled-number"
            label="Time(sec)"
            type="number"
            InputProps={{
              inputProps: {
                max: 50,
                min: 20,
              },
            }}
          />
          <TextField id="filled-number" label="Correct-Option" type="number" />
        </Stack>
      </div>
    </div>
  );
};

export default Question;
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!