Recipe box - Child props with variables

Recipe box - Child props with variables
0

#1

Hello,

I’d like your insight with my attempt at creating a Recipe Box.

After few days of reading and frustration, I can’t delete the list items :confused: :confused: . I have a problem creating a props function with arguments that passes a value from child to parent (specifically the local storage array index).

I keep getting a _this2.props.deleteIt is not a function error

I can, of course, create a massive Component and make my life easier, but that’s not the point of these projects

I’d really hope you can provide a fresh look on this.

Thank you


#2

Sorry, just discovered a typo :slight_smile: