I need to add a link and label inside an input element in reactjs component. The follwoing is what I have:
render() {
return(
<div className="login-panel-page">
<input type="password" id="password"
name="password" value="" placeholder="Password" maxLength="255" autoCapitalize="off">
<label htmlFor="password">Password</label>
<a>Show password</a>
</input>
</div>
)
}
However here is what I get:
bundle.js:9179 Uncaught
Error: input is a void element tag
and must neitherhave `children` nor use `dangerouslySetInnerHTML`.
Check the render method of Login.
Can anyone help how I can achieve that?