Created
February 7, 2020 19:44
-
-
Save gregoryanderson/30f72c051af114507cbaf891a769cb6c to your computer and use it in GitHub Desktop.
Add ideas
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, { Component } from "react"; | |
import logo from "./logo.svg"; | |
import Form from "./Form"; | |
import Container from './Container' | |
import "./App.css"; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
ideas:[ | |
{title: "Make pizza", description: "its deliscious, why not?"}, | |
{title: "Make cake", description: "its yummy, why not?"}, | |
{title: "Make tacos", description: "its tasty, why not?"}, | |
] | |
}; | |
} | |
render() { | |
return ( | |
<div className="App"> | |
<Form /> | |
<Container ideas={this.state.ideas}/> | |
</div> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment