Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import * as React from "react";
let Logo ="";
export default class FirstComponent extends React.Component <{}> {
render() {
return (
{/* React components must have a wrapper node/element */}
<h1>A Simple React Component Example with Typescript</h1>
<img src={Logo} />
<p>I am a compinent which shows the logrocket logo. For more info on Logrocket, please visit Https://</p>
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.