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 { List } from './List'; | |
class App extends React.Component { | |
render() { | |
return ( | |
<div> | |
<List type='Living Musician'> | |
<li>Sachiko M</li> |
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 { Welcome } from './Welcome'; | |
class Home extends React.Component { | |
render() { | |
return <Welcome name='Ludwig van Beethoven' />; | |
} | |
} |
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!" |
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'; | |
class Contact extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
password: 'swordfish', | |
authorized: false | |
}; |
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
const players = [ | |
{ age: 5, sport: "soccer", city: "Chicago", dateJoined: new Date('2021-01-20') }, | |
{ age: 6, sport: "baseball", city: "Boulder", dateJoined: new Date('2019-12-30') }, | |
{ age: 10, sport: "soccer", city: "Chicago", dateJoined: new Date('2020-11-12') }, | |
{ age: 11, sport: "handball", city: "San Francisco", dateJoined: new Date('2020-08-21') }, | |
{ age: 6, sport: "soccer", city: "Chicago", dateJoined: new Date('2021-07-06') }, | |
{ age: 8, sport: "softball", city: "Boulder", dateJoined: new Date('2019-02-27') }, | |
{ age: 7, sport: "tennis", city: "San Francisco", dateJoined: new Date('2019-05-31') }, | |
{ age: 4, sport: "handball", city: "San Francisco", dateJoined: new Date('2018-03-10') } | |
] |