Created
January 13, 2018 07:20
-
-
Save nishant8BITS/bee6954c14eab9e02caa9f36d2158a17 to your computer and use it in GitHub Desktop.
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
// Function Component | |
// Well, as you know, function components are a little limited. | |
// All they know about is their current props. They can’t access previous props or external state. | |
// And they’re only re-rendered when their parent is; they can’t be re-rendered individually. | |
// | |
// class components give you the power to store state, communicate with the outside world, | |
// and re-render whenever you’d like. But class components can be simple, too! In fact, | |
// any function component can also be implemented as a class component. | |
// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment