Created
November 16, 2021 21:55
-
-
Save Mr-Kumar-Abhishek/eee7cbe74d492cacd09211735296fe2b to your computer and use it in GitHub Desktop.
React component from scratch
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
class MyComponent extends React.Component { | |
constructor(props){ | |
super(props); | |
} | |
render(){ | |
return( | |
<h1>My First React Component!</h1> | |
); | |
} | |
} | |
ReactDOM.render(<MyComponent />, document.getElementById('challenge-node')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment