-
-
Save imdongchen/537a7e88c132a8daf00b7601331d4d66 to your computer and use it in GitHub Desktop.
This file contains 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
// functional component | |
function InnerComponent({ title, onClick }) { | |
console.log('I will always be called') | |
} | |
// or regular class component | |
class InnerComponent extends Component { | |
render() { | |
console.log('I will always re-render!') | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment