(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # serverless.yml | |
| service: pokemon-service | |
| provider: | |
| name: aws | |
| runtime: nodejs8.10 | |
| stage: dev | |
| region: us-east-1 | |
| memorySize: 512 |
| # serverless.yml | |
| service: pokemon-service | |
| provider: | |
| name: aws | |
| runtime: nodejs8.10 | |
| stage: dev | |
| region: us-east-1 | |
| memorySize: 512 |
| # serverless.yml | |
| service: pokemon-service | |
| provider: | |
| name: aws | |
| runtime: nodejs8.10 | |
| stage: dev | |
| region: us-east-1 | |
| memorySize: 512 |
| const modulePath = './someFile.js'; // path of module | |
| // dynamic import() module | |
| import(modulePath).then(module => { | |
| return module.default; // return default function of es module | |
| }); |
| const express = require('express') | |
| const serverless = require('serverless-http') | |
| const bodyParser = require('body-parser') | |
| const pool = require('./configs/dbConfig') | |
| const app = express() | |
| app.use(bodyParser.json()) | |
| app.use(bodyParser.urlencoded({ extended: true })) |
| class App extends Component { | |
| static propTypes = { | |
| title: propTypes.string, | |
| }; | |
| static defaultProps = { | |
| title: 'app works from default props', | |
| } | |
| render() { |
| class App extends Component { | |
| render() { | |
| return ( | |
| <React.Fragment> | |
| <h1>Currency Converter</h1> | |
| <Amount | |
| render={data => { | |
| return ( | |
| <React.Fragment> | |
| <Euro amount={data.amount} /> |
| import React from 'react'; | |
| import EnzymeConfig from './../../../enzyme'; | |
| import { shallow } from 'enzyme'; | |
| import Alert from './Alert'; | |
| EnzymeConfig(); | |
| describe('Alert component testing', () => { | |
| // 1. alert-primary |
| 'use strict'; | |
| function bind(fn, thisArg) { | |
| return function wrap() { | |
| var args = new Array(arguments.length); | |
| for (var i = 0; i < args.length; i++) { | |
| args[i] = arguments[i]; | |
| } | |
| return fn.apply(thisArg, args); | |
| }; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.