I have this component:
import React from \'react\'; export default class AddItem extends React.Component { add() { this.props.onButtonClick(this.input.
I have had a similar problem, turns out we don't need hooks to do these, we can make an conditional render and it will still work fine.
SignUP