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 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 |
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
### 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: |