You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
getInitialState isn't transformed into constructor this.state #75
Activity
cpojer commentedon Aug 31, 2016
No, this is intentional. The new codemod expects you to use the class properties transform.
cc @keyanzhang
keyz commentedon Aug 31, 2016
Yeah, we don't need to create a constructor when the initial state is simple. The updated README explains how it works :)
Misterhex commentedon Jun 6, 2017
for those who needed more information.
#54
transform-class-properties