DEV Community

Discussion on: React: Controlling Rendering Through Keys

Collapse
 
theoutlander profile image
Nick Karnik

I remember reading that, but never needed to use it so probably forgot about it. However, that use-case makes sense.

I generally usee getDerivedStateFromProps because it helps keep the components more efficient.