Skip to content

Instantly share code, notes, and snippets.

@Mr-Kumar-Abhishek
Created November 16, 2021 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mr-Kumar-Abhishek/eee7cbe74d492cacd09211735296fe2b to your computer and use it in GitHub Desktop.
Save Mr-Kumar-Abhishek/eee7cbe74d492cacd09211735296fe2b to your computer and use it in GitHub Desktop.
React component from scratch
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