Last active
May 30, 2022 16:53
-
-
Save dineshdeveloper1/4032f5894a1987817d9d03326de5845e to your computer and use it in GitHub Desktop.
React Stateful Class Component
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
//stateful class Component ========================================================================================= | |
import React, { Component } from 'react'; | |
class Welcome extends Component { | |
render(){ | |
return <h2>Class Component</h2> | |
} | |
} | |
export default Welcome | |
// ========================================================================================= | |
import React from 'react'; | |
class Welcome extends React.Component { | |
render(){ | |
return <h2>Class Component</h2> | |
} | |
} | |
export default Welcome | |
// ========================================================================================= | |
// ========================================================================================= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment