Skip to content

Instantly share code, notes, and snippets.

@peterkle
Last active June 19, 2017 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterkle/57671a569b118ac60021dff2575221da to your computer and use it in GitHub Desktop.
Save peterkle/57671a569b118ac60021dff2575221da to your computer and use it in GitHub Desktop.
MobX and React stateless functional component
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