DEV Community

OskarOlortegui
OskarOlortegui

Posted on

React Constructor

I've got many Questions.
1)Why sometimes I see the constructor and super set without the "props" ?
2)Classes, sometimes I see Methods outside the constructor without been set with ".bind(this)" and still works out anyway, what's the reason?
3)when Do I know is appropriate to set idk an array or a function inside of the constructor directly (I mean without writing it inside of "this.state" or binding the function "bind(this)" )

Please I relly need your help.
btw if someone has a real tutorial about lifecycles *for begginers I will be gratefull

Top comments (0)