Skip to content

Instantly share code, notes, and snippets.

View jsiwhitehead's full-sized avatar

Jon Whitehead jsiwhitehead

View GitHub Profile
@jsiwhitehead
jsiwhitehead / refluent.jsx
Last active August 10, 2018 14:10
Refluent vs standard React comparison
import * as React from 'react';
import refluent, { branch } from 'refluent';
const Hover = refluent.do((_, push) => ({
hoverProps: {
onMouseMove: () => push({ isHovered: true }),
onMouseLeave: () => push({ isHovered: false }),
},
isHovered: false,
}));
### Keybase proof
I hereby claim:
* I am jsiwhitehead on github.
* I am jsiwhitehead (https://keybase.io/jsiwhitehead) on keybase.
* I have a public key whose fingerprint is 0B12 4450 79E8 2A16 7B82 A813 B559 DBC3 EAAB F004
To claim this, I am signing this object: