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
***** My Component ***** | |
// client/src/components/pages/functional/Weather.js | |
import React, { useEffect } from 'react'; | |
import { connect, useDispatch } from 'react-redux'; | |
import PropTypes from 'prop-types'; | |
import Moment from 'react-moment'; | |
import Spinner from '../../helpers/Spinner' | |
import { getWeather } from '../../../redux/actions/weather' |
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
'use strict'; | |
// node modules | |
const express = require('express'); | |
const app = express(); | |
const router = express.Router(); | |
const fs = require('fs'); | |
const config = require('config'); | |
// local modules |