|
|
|
|
|
by econnors
1717 days ago
|
|
I'm not sure what you mean, could you clarify? Having a stateful component render something different based on a prop change is core to react. Using the key property "resets" the component by rendering a new one, but just because you use state doesn't mean you can't change props. |
|
https://reactjs.org/blog/2018/06/07/you-probably-dont-need-d...