input is a void element tag and must neither have `children` nor use `dangerouslysetinnerhtml`. in react
Answers
Answered by
1
This standard applies when void components have either children / youngsters or dangerouslySetInnerHTML prop.
HTML components, for example, <area/>, <br/>, and <input/> will be void components which are just self-shutting with no substance.
In this way, React will toss a special case that you set either kids or dangerouslySetInnerHTML prop for a void component.
Similar questions
Science,
7 months ago
English,
7 months ago
Science,
7 months ago
Computer Science,
1 year ago
Math,
1 year ago
Computer Science,
1 year ago
Biology,
1 year ago