What is the use of getDeruvedStateFromProps() method?

in lifecycle method there are 3 major operatons Mounting updating and Unmounting . Here Mounting … Read more What is the use of getDeruvedStateFromProps() method?

in lifecycle method there are 3 major operatons Mounting updating and Unmounting . Here Mounting there are 4 Major methods. Constructor(),getDeruvedStateFromProps(),render() and componentDidMount(). I dont Understand what is the purpos and use of getDeruvedStateFromProps(). In which situation did i use it……

Source: React – Stack Overflow


Categories: NewsTags: ,

Tags: ,


Leave a Reply

Your email address will not be published. Required fields are marked *