Skip to content

Instantly share code, notes, and snippets.

View tdeekens's full-sized avatar

Tobias Deekens tdeekens

View GitHub Profile
View gist:f7061b3c214e5424bec2
### Keybase proof
I hereby claim:
* I am tdeekens on github.
* I am tdeekens ( on keybase.
* I have a public key whose fingerprint is A3BB 5D77 6134 11AD B201 F14D A671 6D21 535E 2771
To claim this, I am signing this object:
View radio-blog-11.js
const RadioContext = React.createContext();
class RadioGroup extends React.Component {
// NOTE:
// That we memoize the value in oder not to trigger wasteful rendering on
// the `RadioContext.Provider` below.
createContextValue = memoize((value, name, onChange) => ({