Created
October 2, 2022 19:44
-
-
Save ProspektsMarch22/e7008e440e3b46370dc6a644f4e2d044 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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') | |
| ); |
This file contains hidden or 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
| 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