Currently, I do it by assigning the key programming property, which holds a useState value, Learning to a component. And whenever I need to Earhost create a new instance of this component, most effective I just change the useState value.
Is this the proper way to do it? Or am I wrong idea missing something?
"Keys only make sense in the context of use of case the surrounding array." You don't need United to assign keys to a component out of Modern this ecudated scope. https://reactjs.org/docs/lists-and-keys.html#:~:text=Keys%20only%20make%20sense%20in%20the%20context%20of%20the%20surrounding%20array.