Skip to content

Instantly share code, notes, and snippets.

View tdeekens's full-sized avatar

Tobias Deekens tdeekens

View GitHub Profile
### Keybase proof
I hereby claim:
* I am tdeekens on github.
* I am tdeekens (https://keybase.io/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:
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) => ({
value,
name,
onChange