- What problem are we solving?
- Why does this matter?
- Primary objectives
- Success criteria (preferably measurable)
- e.g., “Reduce user churn by 10%” instead of “Make users happier-ish”
| const API_URL = | |
| 'https://newsapi.org/v2/top-headlines?country=us&apiKey=65fe12450a1942bab3176e10e8c48062'; | |
| const getParentEl = () => document.querySelector('.list'); | |
| const getNews = () => { | |
| fetch(API_URL) | |
| .then((res) => res.json()) | |
| .then((res) => { | |
| createList(res.articles); |
| import React, { Suspense, lazy } from 'react'; | |
| import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; | |
| import './App.css'; | |
| // importing the Home component by default | |
| import Home from './Components/Home'; | |
| // importing other components using Dynamic Import | |
| const About = lazy(() => |
| import * as React from 'react'; | |
| import { withAuthorization } from './withAuthorization'; | |
| // you can specify interface for props and state, I left it as 'any' | |
| class ServerMonitor extends React.Component<any, any> { | |
| render(){ | |
| return( |
| withDocker: &withDocker | |
| docker: | |
| - image: circleci/node:9.6 | |
| version: 2 | |
| jobs: | |
| build: | |
| working_directory: ~/ProjectDirectory | |
| <<: *withDocker | |
| steps: | |
| - checkout |
| { | |
| "hosting": [ | |
| { | |
| "target": "appone", | |
| "public": "dist1", | |
| "ignore": [ | |
| "firebase.json", | |
| "**/.*", | |
| "**/node_modules/**" | |
| ], |