Add the type
property to package.json
to ensure modules are supported:
{
"type": "module",
}
That's legitimately a good default position to hold, however, in this case, the free money is a function of time, and not only charity.
In February 2020, in order to promote Handshake (HNS) to developers, an airdrop was offered to any Github user with more than 15 followers. The Airdrop would give you 4246HNS, at the time worth around at $0.08USD per coin, for a total of $339.68USD, pretty generous!
Today, 4246HNS is worth around $4000 dollarydoos, and there are plenty of github users who haven't claimed theirs.
#!/usr/bin/env bash | |
# | |
# Check if source branch has been already merged into destination branch | |
# https://stackoverflow.com/questions/226976/how-can-i-know-if-a-branch-has-been-already-merged-into-master | |
# | |
git_is_merged () { | |
merge_destination_branch=$1 | |
merge_source_branch=$2 |
GRAPHQL_URI=http://localhost:3001/graphql |
// install @types/react-redux and other nonsense | |
import * as React from 'react' | |
import { connect } from 'react-redux' | |
import { YourActualAppState } from './wherever-it-is.ts' | |
export function mapStateToProps({ | |
whatever | |
}: YourActualAppState) { | |
return { |
With the release of Node 6.0.0, the surface of code that needs transpilation to use ES6 features has been reduced very dramatically.
This is what my current workflow looks like to set up a minimalistic and fast microservice using micro and async
+ await
.
import React, { Component } from 'react' | |
import Subapp from './subapp/Root' | |
class BigApp extends Component { | |
render() { | |
return ( | |
<div> | |
<Subapp /> | |
<Subapp /> | |
<Subapp /> |