wrapping up lesson 4

This commit is contained in:
Micah Godbolt
2019-03-03 20:24:20 -08:00
parent adf8f76c5e
commit b9089ab8b6
11 changed files with 308 additions and 289 deletions

View File

@@ -1,14 +1,11 @@
import React from 'react';
import { Counter } from './components/Counter';
export class App extends React.Component<any, any> {
render() {
return (
<div className="App">
<h2>My App</h2>
<Counter text="Chickens" />
<Counter text="Ducks" />
</div>
);
}
}
export const App = props => {
return (
<div>
<Counter text="chickens" />
<Counter text="ducks" />
</div>
);
};