Last active
June 19, 2017 18:37
-
-
Save peterkle/57671a569b118ac60021dff2575221da to your computer and use it in GitHub Desktop.
MobX and React stateless functional component
This file contains hidden or 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 { inject, observer } from 'mobx-react'; | |
const GuestCell = (guestStore, handleChange) => | |
<div><input value={guestStore.firstName} onChange={handleChange} /><div>; | |
export default inject('guestStore')(observer(GuestCell)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment