Unhandled Rejection (Error): input is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`. code example
Example 1: input is a void element tag and must neither have `children` not use `dangerouslySetInnerHTML`.
<input/> //HAS to be self-closing
Example 2: 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/>
Example 3: Error: input is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.
Error: br is a void (break) element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.