Skip to content

Instantly share code, notes, and snippets.

@gregoryanderson
Created February 7, 2020 19:44
Show Gist options
  • Save gregoryanderson/30f72c051af114507cbaf891a769cb6c to your computer and use it in GitHub Desktop.
Save gregoryanderson/30f72c051af114507cbaf891a769cb6c to your computer and use it in GitHub Desktop.
Add ideas
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