Split Commit
DEAL REGISTRATION
Please tell us about your opportunity.
Please tell us about your opportunity.
renderContent(deleteTreatment) { const allowDelete = deleteTreatment.treatment === "on"; return ( <div className="todoListMain"> <div className="header"> <form onSubmit={this.addItem}> <input ref={(a) => (this._inputElement = a)} placeholder="Enter Task" ></input> <button type="submit">Add</button> </form> </div> <TodoItems entries={this.state.items} allowDelete={allowDelete} delete={this.deleteItem} /> <TodoItems entries={this.state.items} allowDelete={allowDelete} delete={this.deleteItem} /> </div> ); }