now with usePendingFormSubmit()
This file contains 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
Hello Remix! | |
<form>! Hello old friend! I haven't seen you in a long time. |
This file contains 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
/* eslint-disable func-names, no-plusplus, babel/semi, arrow-parens, no-ternary, no-undefined */ | |
/* eslint semi: ["error", "never"] */ | |
/* global inlineTools:true, copy */ | |
inlineTools = (function () { | |
const replacer = (c) => `-${c.toLowerCase()}` | |
const toCSSProperty = (property) => property.replace(/[A-Z]/g, replacer) | |
.replace(/^webkit/, '-webkit') |
This file contains 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
#!/bin/bash | |
# This script was written with the following assumptions: | |
# * you have two remotes: `upstream` and `origin`. | |
# * you only ever push to `origin` | |
# For most projects this would be master, but dev is our main branch | |
DEFAULT_BRANCH="dev" |
This file contains 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
import React from 'react' | |
import { Match } from 'react-router' | |
// example: | |
// <MatchWithTransforms | |
// transforms={{ id: Number }} | |
// pattern="/page/:id" | |
// component={ViewPage} /> | |
const MatchWithTransforms = ({ transforms, ...matchProps}) => { |
It's time to replace CoffeeScript with Babel and CoffeeLint with eslint.
CoffeeScript was useful a few years ago. It provided many features that
JavaScript was lacking. It gave us the fat arrow (lexical this
functions),
default parameters, destructuring assignments, splats (spread operator), a
class
keyword, block strings, and more. Everything in the list above is now
part of the JavaScript standard. JavaScript is moving forward and gaining
This file contains 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
// This was written using gists editor. I hope I have the syntax right. | |
function HOCAutoSizer(ChildComponent) { | |
return function(props) { // Stateless component | |
return ( | |
<AutoSizer> | |
{({ height, width }) => ( | |
<ChildComponent | |
width={width} | |
height={height} |
I hereby claim:
- I am asaayers on github.
- I am asaayers (https://keybase.io/asaayers) on keybase.
- I have a public key is ASA-KrZq2n-UzkQ7If6W6JZhW2GHHBNiK8J0bXyg6INuMwo
To claim this, I am signing this object:
This file contains 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
const someObject = { | |
a: "Some Value" | |
// ^ Input | |
// ^ Output: someObject.a | |
} | |
const { a: a } = someObject | |
// ^ Output: `const a` | |
// ^ Input: someObject.a |
This file contains 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
{ | |
"arrow_spacing": { | |
"level": "error" | |
}, | |
"cyclomatic_complexity": { | |
"value": 11, | |
"level": "warn" | |
}, | |
"indentation": { | |
"value": 4 |
NewerOlder