I am new to js reaction.
getDefaultProps () { return { backgroundColor: 'gray', height: 200, width: 200 } },
I have the same values ββfor getDefaultProps and for getInitialState :
getInitialState () { return { backgroundColor: 'gray', height: 200, width: 200 } },
What is the logical difference between the two. which was to be redefined or which will be executed first.
Thanks.
Naeem source share