Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import * as React from "react";
let Logo ="https://logrocket.com/img/logo.png";
export default class FirstComponent extends React.Component <{}> {
render() {
return (
<div>
{/* React components must have a wrapper node/element */}
<h1>A Simple React Component Example with Typescript</h1>
<div>
<img src={Logo} />
</div>
<p>I am a compinent which shows the logrocket logo. For more info on Logrocket, please visit Https://logrocket.com</p>
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.