so, in some ways this is the easiest/cleanest way to get the job done (though it will call this effect every time the state or prop changes), but it's not what we're supposed to do–we're supposed to move the state up and have it be managed by a parent. the easiest way to do that would be to type quantity as a string and modify the object itself, or make a state at the parent level and manage it there. thoughts?
so, in some ways this is the easiest/cleanest way to get the job done (though it will call this effect every time the state or prop changes), but it's not what we're supposed to do–we're supposed to move the state up and have it be managed by a parent. the easiest way to do that would be to type quantity as a string and modify the object itself, or make a state at the parent level and manage it there. thoughts?