I don't want to ask this simple question here but this feature is not working for me and I don't understand why. Everything looks correct:
class Questionnaire extends Component {
constructor(props) {
super(props);
this.state = {
status: true,
};
}
render() {
return (
<div disabled={this.state.status === true ? true : false}>
<h1>The Form</h1>
<input type="text" />
<br />
<input type="text" />
<br />
<input type="text" />
<br />
<input type="text" />
<br />
<button>Submit</button>
</div>
);
}
}
export default Questionnaire;
Do you see something wrong here? Please point out my mistake. Also I've created this stackblitz.