import React from "react"; import Link from "next/link"; import axios from 'axios'; import { getPrograms } from "../../../actions"; export default class Footer extends React.Component { constructor(props) { super(props); this.state = { programs: [], } } componentDidMount() { getPrograms().then((programs) => this.setState({ programs: programs })).catch(() => {}); } render() { const { programs } = this.state; return ( ) } }