TLDR: Use for...of instead of forEach() in asynchronous code.
For legacy browsers, use for(...;...;...) or [].reduce()
To execute the promises in parallel, use Promise.all([].map(...))
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Mithril Rollup.js</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <link href="bundle.css" rel="stylesheet" /> | |
| </head> | |
| <body> | |
| <div id="app"></div> |
A dead simple React Twemoji component.
npm install --save twemoji
| #! /bin/bash | |
| ###################################################################### | |
| # | |
| # This script generates an SSL certficate for local development. To | |
| # execute the script, run `bash create-dev-ssl-cert.sh`. Sudo is | |
| # needed to save the certificate to your Mac KeyChain. After the cert | |
| # is generated, you can use `HTTPS=true yarn start` to run the web | |
| # server. | |
| # |