Answers for "Error: input is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`."

7

input is a void element tag and must neither have `children` not use `dangerouslySetInnerHTML`.

<input/> //HAS to be self-closing
Posted by: Guest on January-26-2020
1

Error: input is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.

Self closing 
Wrong:
<input></input
Correct:
<input/>

If you are using bootstrap:
Wrong:
<Form.Control></Form.Control>
Correct:
<Form.Control/>
Posted by: Guest on March-17-2021

Code answers related to "Error: input is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`."

Browse Popular Code Answers by Language