Created
November 8, 2019 09:07
-
-
Save sabesansathananthan/d6e9b5f294cb74516d5b10d88ff3ca3b to your computer and use it in GitHub Desktop.
This is an example for react best practice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SateInsideConstructor extends React.Component { | |
constructor(props) { | |
super(props) | |
this.state = { | |
counter: 0 | |
} | |
} | |
/* your logic */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment