Material-ui: Getting Failed prop type: Invalid prop `children` supplied to `MenuItem`, expected a ReactNode.

Created on 22 Apr 2018  路  2Comments  路  Source: mui-org/material-ui

"material-ui": "^1.0.0-beta.41",

const questions = securityQuestions.map((q) =>
    <MenuItem
      key={q.id}
      value={q.id}
    >
      {q.question}
    </MenuItem>
  );

 <Select
       value={user.securityQuestion1.id}
       onChange={handleChange}
       inputProps={{
         id: 'security-question1',
       }}
  >
       {questions}
 </Select>

This was not happening in older version

Most helpful comment

And what was wrong? @iohcidnal

All 2 comments

OK, Closing this. I found what was wrong. Thanks.

And what was wrong? @iohcidnal

Was this page helpful?
0 / 5 - 0 ratings