Skip to content

Instantly share code, notes, and snippets.

@ProspektsMarch22
Created October 2, 2022 19:44
Show Gist options
  • Select an option

  • Save ProspektsMarch22/e7008e440e3b46370dc6a644f4e2d044 to your computer and use it in GitHub Desktop.

Select an option

Save ProspektsMarch22/e7008e440e3b46370dc6a644f4e2d044 to your computer and use it in GitHub Desktop.
import React from 'react';
import ReactDOM from 'react-dom';
import { Greeting } from './Greeting'
class App extends React.Component {
render() {
return (
<div>
<h1>
Hullo and, "Welcome to The Newzz," "On Line!"
</h1>
<Greeting name="Isaac" />
<article>
Latest newzz: where is my phone?
</article>
</div>
);
}
}
ReactDOM.render(
<App />,
document.getElementById('app')
);
import React from 'react';
export class Greeting extends React.Component {
render() {
return <h1>Hi there, {this.props.name}!</h1>;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment