diff --git a/src/components/Board.js b/src/components/Board.js
index 9222fd88..4e8539ba 100644
--- a/src/components/Board.js
+++ b/src/components/Board.js
@@ -8,26 +8,61 @@ import NewCardForm from './NewCardForm';
import CARD_DATA from '../data/card-data.json';
class Board extends Component {
+
constructor() {
super();
this.state = {
+ // card: CARD_DATA.cards,
cards: [],
};
}
+ componentDidMount() {
+ console.log("The component did in fact mount");
+
+ const GET_ALL_CARDS_URL = `${this.props.url}${this.props.boardName}/cards`;
+
+ axios.get(GET_ALL_CARDS_URL)
+ .then((response) => {
+ this.setState({
+ cards: response.data,
+ });
+ })
+ .catch((error) => {
+ this.setState({
+ error: error.message
+ });
+ });
+}
+
+
+
+
+
+
render() {
+ const emoji = require("emoji-dictionary");
+
+ const cardList = this.state.cards.map(({card}) => {
+ console.log(card);
+ return