diff --git a/src/App.js b/static/App.js similarity index 87% rename from src/App.js rename to static/App.js index 6551f43..f90261d 100644 --- a/src/App.js +++ b/static/App.js @@ -4,20 +4,17 @@ import './App.css'; class Card extends React.Component{ state = { - data: [] + data: {} } constructor(props) { super(props); - this.setState({data: props}); + this.state.data = props; } render() { return ( -
{this.state.data.Closed}
@@ -32,7 +29,7 @@ class Card extends React.Component{ function CardImg(data) { return ({data.UserID}
@@ -40,7 +37,7 @@ class Card extends React.Component{{data.UserID}
\n{data.joined_at}
\n{data.user.id}
\n{data.UserID}
\n{data.joined_at}
\n{data.user.id}
\n